[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#3133: quota files not sparse after running quotacheck



Package: quota
Version: 1.52-3

After running quotacheck, every quota file uses about 2MB of disk space
99% of which are blocks full of zero bytes.  These blocks should not be
allocated on disk.  Quota files have fixed length records indexed by UID
and quotacheck should just seek over records for unused UIDs without
writing anything to them.

This probably should be fixed by the upstream maintainers, but maybe
we can work around it for now, by copying the quota file to a new
file (seeking over blocks of zero bytes, so they are not allocated)
so that it will be sparse again.  I think cpio can do that.  (after
quotacheck, but before quotaon)

Quotas are often used when there is not enough disk space, and almost
2MB extra for each filesystem would be nice...

Marek


Reply to: