diff options
author | Jorgen Lundman <[email protected]> | 2021-09-14 05:27:07 +0900 |
---|---|---|
committer | GitHub <[email protected]> | 2021-09-13 13:27:07 -0700 |
commit | 7443299fe0b8caaadbfc18f778732bb26c899e41 (patch) | |
tree | 6a2d1eb6c92d5a40b19fbc90cd1e8c6f55da0a5b /lib/libzfs | |
parent | f82f0279ed588505c16a9026786ba966dbc5f0ee (diff) |
Iterate encrypted clones at zvol_create_minor
Userland figures out which encryption-root keys are required to load,
and issues ZFS_IOC_LOAD_KEY.
The tail section of spa_keystore_load_wkey() will call
zvol_create_minors() on the encryption-root object.
Any clones of the encrypted zvol will not be plumbed. This commits
adds additional logic to detect if zvol has clones, and is encrypted,
then adds these to the list of zvols to call zvol_create_minors() on.
Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: Ryan Moeller <[email protected]>
Signed-off-by: Jorgen Lundman <[email protected]>
Closes #12471
Diffstat (limited to 'lib/libzfs')
0 files changed, 0 insertions, 0 deletions