Closed ghost closed 5 years ago
The top level snapshot is renamed with rename -r but it does not recurse.
rename -r
truncate -s 1G disk0 zpool create testpool `pwd`/disk0 zfs create testpool/testfs zfs snapshot -r testpool@snap zfs list -tall # NAME USED AVAIL REFER MOUNTPOINT # testpool 164K 832M 25.5K /testpool # testpool@snap 0B - 25.5K - # testpool/testfs 24K 832M 24K /testpool/testfs # testpool/testfs@snap 0B - 24K - zfs rename -r testpool@snap testpool@snap-new zfs list -tall # NAME USED AVAIL REFER MOUNTPOINT # testpool 171K 832M 25.5K /testpool # testpool@snap-new 0B - 25.5K - # testpool/testfs 24K 832M 24K /testpool/testfs # testpool/testfs@snap 0B - 24K -
Expected behavior is for the snapshots to all have been renamed.
This affects both FreeBSD and Linux.
Fixed in projects/pr-rebase
The top level snapshot is renamed with
rename -r
but it does not recurse.Expected behavior is for the snapshots to all have been renamed.