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
Tony Hutter <hutter2@llnl.gov>Committed on Dec 6 2021, 8:22 PM
Parents
rGea0dda59995f: Exclude zfs_copies_003_pos on Linux
Branches
Unknown
Tags
Unknown

Event Timeline

Tony Hutter <hutter2@llnl.gov> committed rGa1a29bf8fcfc: Iterate encrypted clones at zvol_create_minor (authored by Jorgen Lundman <lundman@lundman.net>).Dec 6 2021, 8:22 PM