Add 'zfs send --saved' flag
authorTom Caputi <tcaputi@datto.com>
Fri, 10 Jan 2020 18:16:58 +0000 (13:16 -0500)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 10 Jan 2020 18:16:58 +0000 (10:16 -0800)
commitba0ba69e50efeda7190b59f27c23ada0edf6f36b
tree15a28e7c05e9265cd3c54c08c287abdf994ea507
parent9ab6109fb51c88e9dc43622432b300efed036995
Add 'zfs send --saved' flag

This commit adds the --saved (-S) to the 'zfs send' command.
This flag allows a user to send a partially received dataset,
which can be useful when migrating a backup server to new
hardware. This flag is compatible with resumable receives, so
even if the saved send is interrupted, it can be resumed.
The flag does not require any user / kernel ABI changes or any
new feature flags in the send stream format.

Reviewed-by: Paul Dagnelie <pcd@delphix.com>
Reviewed-by: Alek Pinchuk <apinchuk@datto.com>
Reviewed-by: Paul Zuchowski <pzuchowski@datto.com>
Reviewed-by: Christian Schwarz <me@cschwarz.com>
Reviewed-by: Matt Ahrens <matt@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tom Caputi <tcaputi@datto.com>
Closes #9007
16 files changed:
cmd/zfs/zfs_main.c
include/libzfs.h
include/libzfs_core.h
include/sys/dmu_send.h
lib/libzfs/libzfs_sendrecv.c
lib/libzfs_core/libzfs_core.c
man/man8/zfs-send.8
module/zfs/dmu_recv.c
module/zfs/dmu_send.c
module/zfs/zfs_ioctl.c
tests/runfiles/common.run
tests/zfs-tests/cmd/libzfs_input_check/libzfs_input_check.c
tests/zfs-tests/tests/functional/redacted_send/redacted_resume.ksh
tests/zfs-tests/tests/functional/rsend/Makefile.am
tests/zfs-tests/tests/functional/rsend/rsend.kshlib
tests/zfs-tests/tests/functional/rsend/send_partial_dataset.ksh [new file with mode: 0755]