Re: [PATCH] xfstests: Improve test 219 to work with all filesystems

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

 



On Tue, May 17, 2011 at 04:55:04PM +0200, Jan Kara wrote:
> Different filesystems account different amount of metadata in quota. Thus it is
> impractical to check for a particular amount of space occupied by a file
> because there is no right value. Change the test to verify whether the amount
> of space before quotacheck and after quotacheck is the same as other quota
> tests do.

Except that the purpose of the test the accounting correctly matches
the blocks allocated via direct IO, buffered IO and mmap, not that
quota is consistent over a remount.

IOWs, The numbers do actually matter - for example the recent
changes to speculative delayed allocation beyond EOF for buffered IO
in XFS could be causing large numbers of blocks to be left after EOF
incorrectly, but the exact block number check used in the test would
catch that. The method you propose would not catch it at all, and
we'd be oblivous to an undesirable change in behaviour.

IMO, a better filter function would be the way to go - one
that takes into account that there might be some metadata blocks
allocated but not less than 3x48k should have be allocated to the
quotas...

Cheers,

Dave.
-- 
Dave Chinner
david@xxxxxxxxxxxxx

_______________________________________________
xfs mailing list
xfs@xxxxxxxxxxx
http://oss.sgi.com/mailman/listinfo/xfs


[Index of Archives]     [Linux XFS Devel]     [Linux Filesystem Development]     [Filesystem Testing]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux