HomeFreeBSD

Fix zfs incremental send remove '-o' properties

Description

Fix zfs incremental send remove '-o' properties

When receiving an incremental send stream with intermediary snapshots
zfs_receive_one() does not correctly identify the top-level dataset:
consequently we restore said snapshots as if they were children
datasets in the hierarchy, forcing inheritance of any property received
with 'zfs send -o' and effectively removing any locally set value.

The test case did not correctly verify this situation because it uses
adjacent snapshots, basically testing 'zfs send -i' instead of
'zfs send -I': this commit adds an additional intermediary snapshot to
the test script.

Reviewed-by: Paul Dagnelie <pcd@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: loli10K <ezomori.nozomu@gmail.com>
Closes #7478

Details

Provenance
LOLi <loli10K@users.noreply.github.com>Authored on May 1 2018, 3:58 AM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on May 1 2018, 3:58 AM
Parents
rG20507534d4ed: OpenZFS 9434 - Speculative prefetch is blocked by device removal code
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG3cbe89b12a55: Fix zfs incremental send remove '-o' properties (authored by LOLi <loli10K@users.noreply.github.com>).May 1 2018, 3:58 AM