]> git.proxmox.com Git - mirror_zfs.git/commit
Fix encryption root hierarchy issue
authorTom Caputi <tcaputi@datto.com>
Wed, 8 Nov 2017 23:25:30 +0000 (18:25 -0500)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 8 Nov 2017 23:25:30 +0000 (15:25 -0800)
commit62df1bc813e6972130fffa91c6999a8e5ef80afd
tree40ca0d5623ca01eac108c4f839051f58f583e76e
parent71a24c3c52f6223f54e6351b57e089791aa3b2f1
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
module/zfs/dsl_crypt.c