]> git.proxmox.com Git - mirror_zfs.git/commit
Add property overriding (-o|-x) to 'zfs receive'
authorLOLi <loli10K@users.noreply.github.com>
Tue, 9 May 2017 23:21:09 +0000 (01:21 +0200)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 9 May 2017 23:21:09 +0000 (16:21 -0700)
commita3eeab2de68670a4481eab3d086982aff23b6906
tree5e3da58bca04309596df84dd84b591e8631eae0f
parent305bc4b370b20de81eaf10a1cf724374258b74d1
Add property overriding (-o|-x) to 'zfs receive'

This allows users to specify "-o property=value" to override and
"-x property" to exclude properties when receiving a zfs send stream.
Both native and user properties can be specified.

This is useful when using zfs send/receive for periodic
backup/replication because it lets users change properties such as
canmount, mountpoint, or compression without modifying the source.

References:
   https://www.illumos.org/issues/2745
   https://www.illumos.org/issues/3753

Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed-by: Alek Pinchuk <apinchuk@datto.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: loli10K <ezomori.nozomu@gmail.com>
Closes #1350
Closes #5349
cmd/zfs/zfs_main.c
include/libzfs_core.h
lib/libzfs/libzfs_sendrecv.c
lib/libzfs_core/libzfs_core.c
man/man8/zfs.8
module/zfs/zfs_ioctl.c
tests/runfiles/linux.run
tests/zfs-tests/tests/functional/cli_root/zfs_receive/Makefile.am
tests/zfs-tests/tests/functional/cli_root/zfs_receive/receive-o-x_props_override.ksh [new file with mode: 0755]