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
Tony Hutter <hutter2@llnl.gov>Committed on Apr 30 2024, 5:01 PM
Parents
rG61f3638a3463: Add prefetch property
Branches
Unknown
Tags
Unknown