HomeFreeBSD

Fix updating the zvol_htable when renaming a zvol

Description

Fix updating the zvol_htable when renaming a zvol

When renaming a zvol, insert it into zvol_htable using the new name, not
the old name. Otherwise some operations won't work. For example,
"zfs set volsize" while the zvol is open.

Sponsored by: Axcient
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alek Pinchuk <apinchuk@axcient.com>
Signed-off-by: Alan Somers <asomers@FreeBSD.org>
Closes #16127
Closes #16128

Details

Provenance
asomersAuthored on Apr 25 2024, 9:24 PM
GitHub <noreply@github.com>Committed on Apr 25 2024, 9:24 PM
Parents
rG317b31eedb2b: Python 3.12 deprecated python3-distutils
Branches
Unknown
Tags
Unknown