]> git.proxmox.com Git - mirror_zfs.git/commit
Fix 'zfs receive -o' when used with '-e|-d'
authorLOLi <loli10K@users.noreply.github.com>
Tue, 30 Jan 2018 23:54:33 +0000 (00:54 +0100)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 30 Jan 2018 23:54:33 +0000 (15:54 -0800)
commitbee7e4ff12c7170671606bcea33a6eef6cad5d58
treedc4764edc34ecbc7108046c7980a47b0794e42e6
parent405ec516abbae42f205328ffc1bd7b38cbdd45da
Fix 'zfs receive -o' when used with '-e|-d'

When used in conjunction with one of '-e' or '-d' zfs receive options
none of the properties requested to be set (-o) are actually applied:
this is caused by a wrong assumption made about the toplevel dataset
in zfs_receive_one().

Fix this by correctly detecting the toplevel dataset.

Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: loli10K <ezomori.nozomu@gmail.com>
Closes #7088
lib/libzfs/libzfs_sendrecv.c
tests/zfs-tests/tests/functional/cli_root/zfs_receive/receive-o-x_props_override.ksh