HomeFreeBSD

Fix encryption root hierarchy issue

Description

Fix encryption root hierarchy issue

After doing a recursive raw receive, zfs userspace performs
a final pass to adjust the encryption root hierarchy as
needed. Unfortunately, the FORCE_INHERIT ioctl had a bug
which caused the encryption root to always be assigned to
the direct parent instead of the inheriting parent. This
patch simply fixes this issue.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alek Pinchuk <apinchuk@datto.com>
Signed-off-by: Tom Caputi <tcaputi@datto.com>
Closes #6847
Closes #6848

Details

Provenance
Tom Caputi <tcaputi@datto.com>Authored on Nov 8 2017, 11:25 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Nov 8 2017, 11:25 PM
Parents
rG71a24c3c52f6: Handle compressed buffers in __dbuf_hold_impl()
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG62df1bc813e6: Fix encryption root hierarchy issue (authored by Tom Caputi <tcaputi@datto.com>).Nov 8 2017, 11:25 PM