]> git.proxmox.com Git - mirror_zfs.git/commit - module/os/linux/zfs/zvol_os.c
Fix updating the zvol_htable when renaming a zvol
authorAlan Somers <asomers@FreeBSD.org>
Thu, 25 Apr 2024 21:24:52 +0000 (16:24 -0500)
committerGitHub <noreply@github.com>
Thu, 25 Apr 2024 21:24:52 +0000 (14:24 -0700)
commit21bc066ece7fcf0f8250ba5dfe05fd7f507dca28
treecaf6e3a83a155ac1e778eb9f4b43378b88ff566d
parent317b31eedb2b729985a48d5b98a3a5d34895eeb2
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
module/os/freebsd/zfs/zvol_os.c
module/os/linux/zfs/zvol_os.c