Date: Tue, 16 Jan 2018 00:26:01 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 225200] "zfs promote" of a zvol doesn't rename device nodes for snapshots Message-ID: <bug-225200-8@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D225200 Bug ID: 225200 Summary: "zfs promote" of a zvol doesn't rename device nodes for snapshots Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: freebsd-bugs@FreeBSD.org Reporter: asomers@FreeBSD.org A "zfs promote" operation renames the snapshot that was the basis for the cloned dataset. If that dataset is a zvol, then the snapshot has an associ= ated device node. That device node should be renamed by "zfs promote", but it doesn't. Steps to reproduce: [alans@tom ~]$ sudo zpool create -f foo da1 [alans@tom ~]$ sudo zfs create -V 100m foo/vol0 [alans@tom ~]$ sudo zfs snapshot foo/vol0@snap [alans@tom ~]$ sudo zfs clone foo/vol0@snap foo/vol1 [alans@tom ~]$ ls -l /dev/zvol/foo/ total 0 crw-r----- 1 root operator 0x85 Jan 15 17:24 vol0 crw-r----- 1 root operator 0x130 Jan 15 17:24 vol0@snap crw-r----- 1 root operator 0x131 Jan 15 17:24 vol1 [alans@tom ~]$ sudo zfs promote foo/vol1 [alans@tom ~]$ ls -l /dev/zvol/foo/ total 0 crw-r----- 1 root operator 0x85 Jan 15 17:24 vol0 crw-r----- 1 root operator 0x130 Jan 15 17:24 vol0@snap crw-r----- 1 root operator 0x131 Jan 15 17:24 vol1 The "vol0@snap" node should've been renamed to "vol1@snap". After a reboot= , it does get the correct name. --=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-225200-8>