mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
xfs/{088, 089, 091}: redirect stderr when writing to corrupt fs
These tests primarily check that writes to a corrupt fs don't take down the system, and that running repair will fix them. Therefore, redirect stderr to seqres.full so that we don't fail these tests in DAX mode. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Eryu Guan <guaneryu@gmail.com>
This commit is contained in:
committed by
Eryu Guan
parent
5b2232dde5
commit
d48645e8a1
+1
-1
@@ -80,7 +80,7 @@ echo "+ mount image && modify files"
|
||||
if _try_scratch_mount >> $seqres.full 2>&1; then
|
||||
|
||||
for x in `seq 1 64`; do
|
||||
$XFS_IO_PROG -f -c "pwrite -S 0x62 0 ${blksz}" "${TESTFILE}.${x}" >> $seqres.full
|
||||
$XFS_IO_PROG -f -c "pwrite -S 0x62 0 ${blksz}" "${TESTFILE}.${x}" >> $seqres.full 2>> $seqres.full
|
||||
done
|
||||
umount "${SCRATCH_MNT}"
|
||||
fi
|
||||
|
||||
+1
-1
@@ -80,7 +80,7 @@ echo "+ mount image && modify files"
|
||||
if _try_scratch_mount >> $seqres.full 2>&1; then
|
||||
|
||||
for x in `seq 1 64`; do
|
||||
$XFS_IO_PROG -f -c "pwrite -S 0x62 0 ${blksz}" "${TESTFILE}.${x}" >> $seqres.full
|
||||
$XFS_IO_PROG -f -c "pwrite -S 0x62 0 ${blksz}" "${TESTFILE}.${x}" >> $seqres.full 2>> $seqres.full
|
||||
done
|
||||
umount "${SCRATCH_MNT}"
|
||||
fi
|
||||
|
||||
+1
-1
@@ -80,7 +80,7 @@ echo "+ mount image && modify files"
|
||||
if _try_scratch_mount >> $seqres.full 2>&1; then
|
||||
|
||||
for x in `seq 1 64`; do
|
||||
$XFS_IO_PROG -f -c "pwrite -S 0x62 0 ${blksz}" "${TESTFILE}.${x}" >> $seqres.full
|
||||
$XFS_IO_PROG -f -c "pwrite -S 0x62 0 ${blksz}" "${TESTFILE}.${x}" >> $seqres.full 2>> $seqres.full
|
||||
done
|
||||
umount "${SCRATCH_MNT}"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user