Bug 124424 - [zfs] zfs(8): zfs list -r shows strange snapshots' size
Summary: [zfs] zfs(8): zfs list -r shows strange snapshots' size
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 7.0-STABLE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-fs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-09 18:10 UTC by Anatoly Borodin
Modified: 2010-11-08 16:02 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anatoly Borodin 2008-06-09 18:10:05 UTC
tank/storage/unsorted/TODO contains some snapshots, which contained no data since this filesystem was unchanged for a while. Now some big files were removed (~1.8G), and zfs doesn't show the space occupied by snapshots until the only one snapshot is left. The user can see 5.27G and 3.45G numbers, but cannot see 1.8G number until then.

root@fractal.home[1]:~>zfs destroy tank/storage/unsorted/TODO@UTC_20080602_1109
Mon Jun  9 19:42:06 EEST 2008
root@fractal.home[1]:~>zfs list -r tank/storage/unsorted/TODO
NAME                                           USED  AVAIL  REFER  MOUNTPOINT
tank/storage/unsorted/TODO                    5.27G  61.6G  3.45G  /storage/unsorted/TODO
tank/storage/unsorted/TODO@UTC_20080602_1114      0      -  5.27G  -
tank/storage/unsorted/TODO@UTC_20080603_2358      0      -  5.27G  -
tank/storage/unsorted/TODO@UTC_20080604_1911      0      -  5.27G  -
tank/storage/unsorted/TODO@UTC_20080606_1822      0      -  5.27G  -
tank/storage/unsorted/TODO@UTC_20080606_1824      0      -  5.27G  -
tank/storage/unsorted/TODO@UTC_20080609_1019      0      -  5.27G  -
Mon Jun  9 19:42:14 EEST 2008
root@fractal.home[1]:~>zfs destroy tank/storage/unsorted/TODO@UTC_20080602_1114
Mon Jun  9 19:42:28 EEST 2008
root@fractal.home[1]:~>zfs destroy tank/storage/unsorted/TODO@UTC_20080603_2358
Mon Jun  9 19:42:41 EEST 2008
root@fractal.home[1]:~>zfs destroy tank/storage/unsorted/TODO@UTC_20080604_1911
Mon Jun  9 19:42:47 EEST 2008
root@fractal.home[1]:~>zfs list -r tank/storage/unsorted/TODO
NAME                                           USED  AVAIL  REFER  MOUNTPOINT
tank/storage/unsorted/TODO                    5.27G  61.6G  3.45G  /storage/unsorted/TODO
tank/storage/unsorted/TODO@UTC_20080606_1822      0      -  5.27G  -
tank/storage/unsorted/TODO@UTC_20080606_1824      0      -  5.27G  -
tank/storage/unsorted/TODO@UTC_20080609_1019      0      -  5.27G  -
Mon Jun  9 19:42:51 EEST 2008
root@fractal.home[1]:~>zfs destroy tank/storage/unsorted/TODO@UTC_20080606_1822
Mon Jun  9 19:42:58 EEST 2008
root@fractal.home[1]:~>zfs destroy tank/storage/unsorted/TODO@UTC_20080606_1824
Mon Jun  9 19:43:05 EEST 2008
root@fractal.home[1]:~>zfs list -r tank/storage/unsorted/TODO
NAME                                           USED  AVAIL  REFER  MOUNTPOINT
tank/storage/unsorted/TODO                    5.27G  61.6G  3.45G  /storage/unsorted/TODO
tank/storage/unsorted/TODO@UTC_20080609_1019  1.82G      -  5.27G  -
Mon Jun  9 19:43:07 EEST 2008
Comment 1 K. Macy freebsd_committer freebsd_triage 2009-05-17 05:55:51 UTC
State Changed
From-To: open->feedback



do you still see this in the ZFS_MFC branch?
Comment 2 Mark Linimon freebsd_committer freebsd_triage 2009-05-18 03:54:57 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-fs

Reassign.
Comment 3 Jaakko Heinonen freebsd_committer freebsd_triage 2010-11-08 16:02:56 UTC
State Changed
From-To: feedback->closed

Feedback timeout.