]> granicus.if.org Git - zfs/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)
committerTony Hutter <hutter2@llnl.gov>
Tue, 30 Jan 2018 16:27:32 +0000 (10:27 -0600)
commit2f62fdd6447b1a765dfea3cc5bf9e35dc0901aff
tree730cfe1d909ac39f3190ea6cb9aec26d405b1461
parent137b3e6cff5552c5b0e137008fd274ad9a6f7a0d
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

Requires-spl: refs/pull/679/head
lib/libzfs/libzfs_sendrecv.c
tests/zfs-tests/tests/functional/cli_root/zfs_receive/receive-o-x_props_override.ksh