]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
xfs/138: format the scratch device before using it
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 29 Jan 2019 16:17:19 +0000 (08:17 -0800)
committerEryu Guan <guaneryu@gmail.com>
Sun, 3 Feb 2019 07:52:10 +0000 (15:52 +0800)
Format the scratch device before using it, or else xfs_db will fail,
particularly if the previous test left a corrupt fs behind.

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>
tests/xfs/138

index 36490e6a49890f6ad2c398d22d883d3c4b5f58a6..419885306c76ab4207d3ce955b1c29b415ea7890 100755 (executable)
@@ -38,6 +38,7 @@ echo This is file B
 ENDL
 
 echo "Test with -c"
+_scratch_mkfs > $seqres.full 2>&1
 _scratch_xfs_db -c "sb 0" -c "p magicnum" -c "source $tmp.a" -c "p magicnum" | sed -e 's/0x58465342/XFS_MAGIC/g'
 
 echo "Test with interactive"