]> git.proxmox.com Git - mirror_zfs.git/commit
Iterate encrypted clones at zvol_create_minor
authorJorgen Lundman <lundman@lundman.net>
Mon, 13 Sep 2021 20:27:07 +0000 (05:27 +0900)
committerGitHub <noreply@github.com>
Mon, 13 Sep 2021 20:27:07 +0000 (13:27 -0700)
commit7443299fe0b8caaadbfc18f778732bb26c899e41
tree6a2d1eb6c92d5a40b19fbc90cd1e8c6f55da0a5b
parentf82f0279ed588505c16a9026786ba966dbc5f0ee
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
module/zfs/zvol.c