xfs/506: fix regression on freshly quotachecked filesystem
authorDarrick J. Wong <djwong@kernel.org>
Wed, 14 Apr 2021 01:04:36 +0000 (18:04 -0700)
committerEryu Guan <guaneryu@gmail.com>
Sun, 18 Apr 2021 12:53:53 +0000 (20:53 +0800)
The first thing this test checks is that the health command reports that
nothing has been checked.  This isn't true if we regenerated the quota
counts when we mounted the filesystem (and hence they're marked healthy
and checked), so cycle the mount to get rid of that state.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/xfs/506

index ddda861466471e396de0801165c8bb1c4c551580..7e5538494230d62930d3c6aac1c5b23a24470e64 100755 (executable)
@@ -36,6 +36,7 @@ rm -f $seqres.full
 
 _scratch_mkfs > $seqres.full 2>&1
 _scratch_mount
+_scratch_cycle_mount   # make sure we haven't run quotacheck on this mount
 
 # Haven't checked anything, it should tell us to run scrub
 $XFS_SPACEMAN_PROG -c "health" $SCRATCH_MNT