]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
quota: clean out speculative preallocations when checking quota usage
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 1 Nov 2018 23:19:09 +0000 (16:19 -0700)
committerEryu Guan <guaneryu@gmail.com>
Sun, 4 Nov 2018 14:51:00 +0000 (22:51 +0800)
commita0e085215e05a4ce7a65d24722f99d9811f1a0c7
tree5178a0b7dc2ac698a1bd24d9fdbb4ef5f7d309ca
parenta8d2e332b0af824fbce3999ca023f8d8791e700a
quota: clean out speculative preallocations when checking quota usage

On XFS, the only reliable way to clean out speculative post-eof
preallocations, delayed allocations, and speculative cow preallocations
is to cycle the filesystem mount.  Since we're comparing the post-test
quota counts against a freshly quotacheck to look for leaks, it's fine
to cycle the mount.  This eliminates sporadic quota count failures when
running xfstests with quotas enabled.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
common/quota