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

            Bug ID: 225223
           Summary: "zfs rename -r" of a snapshot doesn't rename zvol
                    snapshots' device nodes
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: [email protected]
          Reporter: [email protected]

ZFS creates device nodes for every zvol and every snapshot of a zvol.  If you
rename a snapshot on a zvol, the device node will automatically get renamed
too.  However, if you use "zfs rename -r" (-r means recursive) on a snapshot of
the zvol's parent dataset, then the snapshot's device node will _not_ get
renamed.

Steps to reproduce:
[alans@tom ~]$ sudo zpool create foo da1
[alans@tom ~]$ sudo zfs create -V 100m foo/vol0
[alans@tom ~]$ sudo zfs snapshot -r foo@0
[alans@tom ~]$ find /dev/zvol/foo/ -type c
/dev/zvol/foo/vol0
/dev/zvol/foo/vol0@0
[alans@tom ~]$ sudo zfs rename -r foo@0 foo@1
[alans@tom ~]$ find /dev/zvol/foo/ -type c
/dev/zvol/foo/vol0
/dev/zvol/foo/vol0@0
[alans@tom ~]$ zfs list -t all -r foo/vol0
NAME         USED  AVAIL  REFER  MOUNTPOINT
foo/vol0     105M  3.51T    56K  -
foo/vol0@1      0      -    56K  -

/dev/zvol/foo/vol0@0 should've been renamed to /dev/zvol/foo/vol0@1 .

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