Eric Sandeen wrote:
> Jan Kara wrote:
>> On Wed 09-06-10 12:49:49, Eric Sandeen wrote:
>>> Jan Kara wrote:
>>>> Run fsx (and also several fsx threads in parallel) and verify that
>>>> quota accounting is correct after they finish.
>>> Jan, I'm having trouble with this one on XFS for some reason, with our
>>> RHEL6 kernel and quota-3.17...
These don't seem to be working properly at all with xfs.
In quota-3.17, quotaoff seems to turn off both accounting and enforcement,
despite what the man page says -
To turn off quota limit enforcement on any XFS filesystem, first make
that quota accounting and enforcement are both turned on using repquota
filesystem. Then, use quotaoff -v filesystem to disable limit
ment. This may be done while the filesystem is mounted.
And once accounting is turned off, it can't be re-enabled without a remount.
With quota-4.0.0-preX, it seems to turn off -neither- accounting nor
based on hch's test:
[14:59] <hch> qemu1:~/xfstests-dev# mount -o quota /dev/vdb5 /mnt/test
[14:59] <hch> qemu1:~/xfstests-dev# quotaon -f /dev/vdb5
[15:00] <hch> qemu1:~/xfstests-dev# quotaon /dev/vdb5
[15:00] <hch> quotaon: Enable XFS group quota accounting during mount
[15:00] <hch> quotaon: Enforcing user quota already on /dev/vdb5