xfs/521,530: refactor scratch fs check
authorDarrick J. Wong <djwong@kernel.org>
Wed, 14 Apr 2021 01:04:48 +0000 (18:04 -0700)
committerEryu Guan <guaneryu@gmail.com>
Sun, 18 Apr 2021 12:53:53 +0000 (20:53 +0800)
Use the existing _check_scratch_fs helper to check the (modified)
scratch filesystem in these tests.

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/521
tests/xfs/530

index e6c417b..b8026d4 100755 (executable)
@@ -75,7 +75,7 @@ echo "Create more copies to make sure the bitmap really works"
 cp -p $testdir/original $testdir/copy3
 
 echo "Check filesystem"
-_check_xfs_filesystem $SCRATCH_DEV none $rtdev
+_check_scratch_fs
 
 # success, all done
 status=0
index 65c17af..0e4dd6b 100755 (executable)
@@ -114,7 +114,7 @@ for rtino in rbmino rsumino; do
 done
 
 echo "Check filesystem"
-_check_xfs_filesystem $SCRATCH_DEV none $rtdev
+_check_scratch_fs
 
 losetup -d $rtdev
 rm -f $TEST_DIR/$seq.rtvol