https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=225200

            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: [email protected]
          Reporter: [email protected]

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 associated
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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"

Reply via email to