mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-23 02:44:41 +03:00
Fix clone handling with encryption roots
Currently, spa_keystore_change_key_sync_impl() does not recurse into clones when updating encryption roots for either a call to 'zfs promote' or 'zfs change-key'. This can cause children of these clones to end up in a state where they point to the wrong dataset as the encryption root. It can also trigger ASSERTs in some cases where the code checks reference counts on wrapping keys. This patch fixes this issue by ensuring that this function properly recurses into clones during processing. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Alek Pinchuk <apinchuk@datto.com> Signed-off-by: Tom Caputi <tcaputi@datto.com> Closes #9267 Closes #9294
This commit is contained in:
committed by
Brian Behlendorf
parent
2a0d41889e
commit
637f0c6019
@@ -123,7 +123,7 @@ tags = ['functional', 'cli_root', 'zfs_bookmark']
|
||||
[tests/functional/cli_root/zfs_change-key]
|
||||
tests = ['zfs_change-key', 'zfs_change-key_child', 'zfs_change-key_format',
|
||||
'zfs_change-key_inherit', 'zfs_change-key_load', 'zfs_change-key_location',
|
||||
'zfs_change-key_pbkdf2iters']
|
||||
'zfs_change-key_pbkdf2iters', 'zfs_change-key_clones']
|
||||
tags = ['functional', 'cli_root', 'zfs_change-key']
|
||||
|
||||
[tests/functional/cli_root/zfs_clone]
|
||||
|
||||
Reference in New Issue
Block a user