8.2-R & ZFSv28 & zfs destroy -r

Dillon Kass lists at loveturtle.net
Mon Mar 21 17:19:27 UTC 2011


Hello. Sorry if this has already been mentioned (and/or fixed), I browsed the list archive and didn't see anything... 

I just applied releng-8.2-zfsv28-20110317.patch.xz to 8.2-R and all seems well but I noticed a zfs destroy -r bug.. 

It used to be if you had a snapshot say rpool/test at monday you could issue zfs destroy -r rpool at monday and it would delete the snapshot even though rpool at monday doesn't exist. 

for example..

turtle at solaris11vm:~# zfs list -t all -r rpool1/test
NAME                         USED  AVAIL  REFER  MOUNTPOINT
rpool1/test                  127K  6.34G    34K  /rpool1/test
rpool1/test at testsnap            0      -    34K  -
rpool1/test/test2             31K  6.34G    31K  /rpool1/test/test2
rpool1/test/test2 at testsnap      0      -    31K  -
rpool1/test/test3             31K  6.34G    31K  /rpool1/test/test3
rpool1/test/test3 at testsnap      0      -    31K  -
rpool1/test/test4             31K  6.34G    31K  /rpool1/test/test4
rpool1/test/test4 at testsnap      0      -    31K  -

turtle at solaris11vm:~# zfs destroy -r rpool1 at testsnap

turtle at solaris11vm:~# zfs list -t all -r rpool1/test
NAME                USED  AVAIL  REFER  MOUNTPOINT
rpool1/test         127K  6.34G    34K  /rpool1/test
rpool1/test/test2    31K  6.34G    31K  /rpool1/test/test2
rpool1/test/test3    31K  6.34G    31K  /rpool1/test/test3
rpool1/test/test4    31K  6.34G    31K  /rpool1/test/test4
turtle at solaris11vm:~# 

However, after updating I noticed zfSnap was unable to destroy my snapshots. It seems like this isn't working anymore..

loveturtle zfsnap # zfs snapshot -r lt/home at testsnap

loveturtle zfsnap # zfs destroy -r lt at testsnap
cannot destroy 'lt at testsnap': dataset does not exist
no snapshots destroyed
zsh: exit 1     zfs destroy -r lt at testsnap

loveturtle zfsnap # zfs destroy -r lt/home at testsnap
loveturtle zfsnap # 

:-(


More information about the freebsd-fs mailing list