mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
xfs/138: format the scratch device before using it
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>
This commit is contained in:
committed by
Eryu Guan
parent
141c0f5a9a
commit
f479ce6186
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user