fstests: test for fallocate capability in more tests
[xfstests-dev.git] / tests / generic / 569
index 02fd85746873d1c0c25f99a1d0a7631d04c563ad..385fa59f3566cc3e89dbcfa406b2a3527ea5f89f 100755 (executable)
@@ -29,6 +29,7 @@ _cleanup()
 # real QA test starts here
 _supported_os Linux
 _supported_fs generic
+_require_xfs_io_command "falloc"
 _require_test_program swapon
 _require_scratch_swapfile
 
@@ -52,8 +53,8 @@ done
 swapon $testfile 2>&1 | _filter_scratch
 
 # Can we write to it?
-$XFS_IO_PROG -c 'pwrite -S 0x59 64k 64k' $testfile
-$XFS_IO_PROG -d -c 'pwrite -S 0x60 64k 64k' $testfile
+$XFS_IO_PROG -c 'pwrite -S 0x59 64k 64k' $testfile 2>&1 | _filter_xfs_io_error
+$XFS_IO_PROG -d -c 'pwrite -S 0x60 64k 64k' $testfile 2>&1 | _filter_xfs_io_error
 $XFS_IO_PROG -c 'mmap -rw 64k 64k' -c 'mwrite -S 0x61 64k 64k' $testfile
 
 # Can we change the file size?