mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
xfs/31[2-7]: hide pwrite fsync errors that are supposed to fail
xfs_io 4.14 will gain the ability to print error messages when pwrite+fsync fail. Certain tests use the error injector to cause failures, so the errors are expected. Since we test for a shut down filesystem after the error injection, we can push the error messages to the log. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Eryu Guan <eguan@redhat.com> Signed-off-by: Eryu Guan <eguan@redhat.com>
This commit is contained in:
committed by
Eryu Guan
parent
32a8ebcbe6
commit
ee3f35961f
+1
-1
@@ -79,7 +79,7 @@ echo "Inject error"
|
||||
_scratch_inject_error "bmap_finish_one"
|
||||
|
||||
echo "CoW a few blocks"
|
||||
$XFS_IO_PROG -c "pwrite -W -S 0x67 -b $sz $((10 * blksz)) $((10 * blksz))" $SCRATCH_MNT/file2 >> $seqres.full
|
||||
$XFS_IO_PROG -c "pwrite -W -S 0x67 -b $sz $((10 * blksz)) $((10 * blksz))" $SCRATCH_MNT/file2 >> $seqres.full 2>&1
|
||||
|
||||
echo "FS should be shut down, touch will fail"
|
||||
touch $SCRATCH_MNT/badfs 2>&1 | _filter_scratch
|
||||
|
||||
+1
-1
@@ -79,7 +79,7 @@ echo "Inject error"
|
||||
_scratch_inject_error "refcount_finish_one"
|
||||
|
||||
echo "CoW a few blocks"
|
||||
$XFS_IO_PROG -c "pwrite -W -S 0x67 -b $sz $((10 * blksz)) $((10 * blksz))" $SCRATCH_MNT/file2 >> $seqres.full
|
||||
$XFS_IO_PROG -c "pwrite -W -S 0x67 -b $sz $((10 * blksz)) $((10 * blksz))" $SCRATCH_MNT/file2 >> $seqres.full 2>&1
|
||||
|
||||
echo "FS should be shut down, touch will fail"
|
||||
touch $SCRATCH_MNT/badfs 2>&1 | _filter_scratch
|
||||
|
||||
+1
-1
@@ -81,7 +81,7 @@ echo "Inject error"
|
||||
_scratch_inject_error "rmap_finish_one"
|
||||
|
||||
echo "CoW a few blocks"
|
||||
$XFS_IO_PROG -c "pwrite -W -S 0x67 -b $sz $((10 * blksz)) $((10 * blksz))" $SCRATCH_MNT/file2 >> $seqres.full
|
||||
$XFS_IO_PROG -c "pwrite -W -S 0x67 -b $sz $((10 * blksz)) $((10 * blksz))" $SCRATCH_MNT/file2 >> $seqres.full 2>&1
|
||||
|
||||
echo "FS should be shut down, touch will fail"
|
||||
touch $SCRATCH_MNT/badfs 2>&1 | _filter_scratch
|
||||
|
||||
+1
-1
@@ -77,7 +77,7 @@ echo "Inject error"
|
||||
_scratch_inject_error "free_extent"
|
||||
|
||||
echo "CoW a few blocks"
|
||||
$XFS_IO_PROG -c "pwrite -W -S 0x67 -b $sz 0 $sz" $SCRATCH_MNT/file1 >> $seqres.full
|
||||
$XFS_IO_PROG -c "pwrite -W -S 0x67 -b $sz 0 $sz" $SCRATCH_MNT/file1 >> $seqres.full 2>&1
|
||||
sync
|
||||
|
||||
echo "FS should be shut down, touch will fail"
|
||||
|
||||
+1
-1
@@ -71,7 +71,7 @@ echo "Inject error"
|
||||
_scratch_inject_error "rmap_finish_one"
|
||||
|
||||
echo "Write files"
|
||||
$XFS_IO_PROG -c "pwrite -W -S 0x67 -b $sz 0 $sz" $SCRATCH_MNT/file1 >> $seqres.full
|
||||
$XFS_IO_PROG -c "pwrite -W -S 0x67 -b $sz 0 $sz" $SCRATCH_MNT/file1 >> $seqres.full 2>&1
|
||||
|
||||
echo "FS should be shut down, touch will fail"
|
||||
touch $SCRATCH_MNT/badfs 2>&1 | _filter_scratch
|
||||
|
||||
+1
-1
@@ -87,7 +87,7 @@ echo "Inject error"
|
||||
_scratch_inject_error "refcount_finish_one"
|
||||
|
||||
echo "CoW a few blocks"
|
||||
$XFS_IO_PROG -c "pwrite -W -S 0x67 -b $sz $((10 * blksz)) $((10 * blksz))" $SCRATCH_MNT/file2 >> $seqres.full
|
||||
$XFS_IO_PROG -c "pwrite -W -S 0x67 -b $sz $((10 * blksz)) $((10 * blksz))" $SCRATCH_MNT/file2 >> $seqres.full 2>&1
|
||||
|
||||
echo "FS should be shut down, touch will fail"
|
||||
touch $SCRATCH_MNT/badfs 2>&1 | _filter_scratch
|
||||
|
||||
Reference in New Issue
Block a user