zfs/tests/zfs-tests/tests/functional/cli_root/zfs_promote
Tom Caputi 637f0c6019 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
2019-09-16 10:07:33 -07:00
..
Makefile.am Fix "file is executable, but no shebang" warnings 2018-04-06 16:34:21 -07:00
cleanup.ksh Add the ZFS Test Suite 2016-03-16 13:46:16 -07:00
setup.ksh Add the ZFS Test Suite 2016-03-16 13:46:16 -07:00
zfs_promote.cfg Add the ZFS Test Suite 2016-03-16 13:46:16 -07:00
zfs_promote_001_pos.ksh OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
zfs_promote_002_pos.ksh OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
zfs_promote_003_pos.ksh OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
zfs_promote_004_pos.ksh OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
zfs_promote_005_pos.ksh OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
zfs_promote_006_neg.ksh zfs promote|rename .../%recv should be an error 2017-07-28 14:12:34 -07:00
zfs_promote_007_neg.ksh OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
zfs_promote_008_pos.ksh Introduce a destroy_dataset helper 2018-03-06 14:54:57 -08:00
zfs_promote_encryptionroot.ksh Fix clone handling with encryption roots 2019-09-16 10:07:33 -07:00