Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions zrep
Original file line number Diff line number Diff line change
Expand Up @@ -1314,6 +1314,13 @@ zrep_init(){
print Creating snapshot $snap
zfs snapshot $Z_SNAP_R $snap || clearquit $srcfs "Cannot create initial snapshot $snap"

# Set --raw zfs send flag for encrypted filesystem, if
# $ZREP_SEND_FLAGS was not already defined.
encryption=`$ZFSGETVAL encryption $srcfs`
if [[ "$encryption" != "off" ]]; then
ZREP_SEND_FLAGS=${ZREP_SEND_FLAGS:---raw}
fi

# Note that we may not want to use -p for normal zrep syncs
# We also should not use -F for normal recv. See workflow.txt
# Note: we may have to reset readonly=on, if we used -p on send...
Expand Down Expand Up @@ -1747,6 +1754,13 @@ _sync(){
if [[ "$token" == "-" ]] ; then token="" ; fi
fi

# Always set --raw zfs send flag for encrypted filesystem, if
# $ZREP_SEND_FLAGS was not already defined.
encryption=`$ZFSGETVAL encryption $srcfs`
if [[ "$encryption" != "off" ]]; then
ZREP_SEND_FLAGS=${ZREP_SEND_FLAGS:---raw}
fi

# Note: doing "-o $senttimeprop" sets prop on FILESYSTEM, not snap.
# So we dont do that usually

Expand Down
7 changes: 7 additions & 0 deletions zrep_snap
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,13 @@ zrep_init(){
print Creating snapshot $snap
zfs snapshot $Z_SNAP_R $snap || clearquit $srcfs "Cannot create initial snapshot $snap"

# Set --raw zfs send flag for encrypted filesystem, if
# $ZREP_SEND_FLAGS was not already defined.
encryption=`$ZFSGETVAL encryption $srcfs`
if [[ "$encryption" != "off" ]]; then
ZREP_SEND_FLAGS=${ZREP_SEND_FLAGS:---raw}
fi

# Note that we may not want to use -p for normal zrep syncs
# We also should not use -F for normal recv. See workflow.txt
# Note: we may have to reset readonly=on, if we used -p on send...
Expand Down
7 changes: 7 additions & 0 deletions zrep_sync
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,13 @@ _sync(){
if [[ "$token" == "-" ]] ; then token="" ; fi
fi

# Always set --raw zfs send flag for encrypted filesystem, if
# $ZREP_SEND_FLAGS was not already defined.
encryption=`$ZFSGETVAL encryption $srcfs`
if [[ "$encryption" != "off" ]]; then
ZREP_SEND_FLAGS=${ZREP_SEND_FLAGS:---raw}
fi

# Note: doing "-o $senttimeprop" sets prop on FILESYSTEM, not snap.
# So we dont do that usually

Expand Down