Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Jan 2018 16:20:20 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 225223] "zfs rename -r" of a snapshot doesn't rename zvol snapshots' device nodes
Message-ID:  <bug-225223-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D225223

            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: freebsd-bugs@FreeBSD.org
          Reporter: asomers@FreeBSD.org

ZFS creates device nodes for every zvol and every snapshot of a zvol.  If y=
ou
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 snapsho=
t 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 .

--=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-225223-8>