Date: Thu, 02 Nov 2023 21:14:53 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 274878] ZFS: sysctl "kstat.zfs.POOLNAME.dataset.objset-0xXXXX.dataset_name" not updated when renaming zvols Message-ID: <bug-274878-227-Et29beSfyw@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-274878-227@https.bugs.freebsd.org/bugzilla/> References: <bug-274878-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D274878 Alan Somers <asomers@FreeBSD.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|ZFS: Corruption in sysctl |ZFS: sysctl |"kstat.zfs.POOLNAME.dataset |"kstat.zfs.POOLNAME.dataset |.objset-0xXXXX.dataset_name |.objset-0xXXXX.dataset_name |" |" not updated when renaming | |zvols --- Comment #1 from Alan Somers <asomers@FreeBSD.org> --- I've reproduced the issue in a VM. As I suspected, it's caused by renames.= =20 But _only_ for zvols. Renaming file systems does not trigger the bug. Steps to Reproduce =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D $ zpool create testpool vtbd1 $ zfs create -V1m testpool/testvol $ sysctl -n kstat.zfs.testpool.dataset.objset-$(printf 0x%x $(zfs get -Hpo value objsetid testpool/testvol)).dataset_name testpool/testvol $ sudo zfs rename testpool/testvol testpool/yyy $ sysctl -n kstat.zfs.testpool.dataset.objset-$(printf 0x%x $(zfs get -Hpo value objsetid testpool/yyy)).dataset_name testpool/testvol --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-274878-227-Et29beSfyw>