diff mbox series

[2/4] xfs/138: format the scratch device before using it

Message ID 154877863906.9277.11927709578869134810.stgit@magnolia (mailing list archive)
State Accepted
Headers show
Series [1/4] xfs/093: make sure the scratch directory still exists after repair | expand

Commit Message

Darrick J. Wong Jan. 29, 2019, 4:17 p.m. UTC
From: Darrick J. Wong <darrick.wong@oracle.com>

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>
---
 tests/xfs/138 |    1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/tests/xfs/138 b/tests/xfs/138
index 36490e6a..41988530 100755
--- a/tests/xfs/138
+++ b/tests/xfs/138
@@ -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"