HomeFreeBSD

Fix 'zfs receive -o' when used with '-e|-d'

Description

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

Details

Provenance
LOLi <loli10K@users.noreply.github.com>Authored on Jan 30 2018, 11:54 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Jan 30 2018, 11:54 PM
Parents
rG405ec516abba: Fix zpool-features(5) large_block inconsistency
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rGbee7e4ff12c7: Fix 'zfs receive -o' when used with '-e|-d' (authored by LOLi <loli10K@users.noreply.github.com>).Jan 30 2018, 11:54 PM