HomeFreeBSD

Iterate encrypted clones at zvol_create_minor

Description

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 <behlendorf1@llnl.gov>
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Signed-off-by: Jorgen Lundman <lundman@lundman.net>
Closes #12471

Details

Provenance
Jorgen Lundman <lundman@lundman.net>Authored on Sep 13 2021, 8:27 PM
GitHub <noreply@github.com>Committed on Sep 13 2021, 8:27 PM
Parents
rGf82f0279ed58: Fixed data integrity issue when underlying disk returns error
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rG7443299fe0b8: Iterate encrypted clones at zvol_create_minor (authored by Jorgen Lundman <lundman@lundman.net>).Sep 13 2021, 8:27 PM