]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
xfs/{088, 089, 091}: redirect stderr when writing to corrupt fs
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 8 Oct 2019 01:03:17 +0000 (18:03 -0700)
committerEryu Guan <guaneryu@gmail.com>
Sun, 13 Oct 2019 13:01:41 +0000 (21:01 +0800)
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>
tests/xfs/088
tests/xfs/089
tests/xfs/091

index 74b45163ad1e98f8a77e3255cb6c8dc779ab643c..d8ca877a08edb28a609891eab477dfc9e77abfab 100755 (executable)
@@ -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
index bcbc6363aac93720c65e43fdebb36e321b8f1196..ad9807699987f0f95c11527994d52c53486569de 100755 (executable)
@@ -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
index be56d8ae413180ef03a10f5289bca57b0820d40f..37c07a529b7e095962e7493ac412f12cb1391348 100755 (executable)
@@ -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