allow more xfs_io tests to be generic

These tests just do generic reads & writes with xfs_io;
if we add a "-F" they will run on other filesystems.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
Eric Sandeen
2009-06-09 10:32:29 -05:00
parent aa31b54565
commit 67fbcc9c08
6 changed files with 60 additions and 60 deletions
+13 -13
View File
@@ -42,36 +42,36 @@ _cleanup()
. ./common.filter
# real QA test starts here
_supported_fs xfs
_supported_fs generic
_supported_os Linux IRIX
_setup_testdir
echo "Buffered writer, buffered reader"
xfs_io -f -d -c 'pwrite -b 64k 0 512m' $testdir/io_test > /dev/null
xfs_io -f -c 'pwrite -b 64k 0 512m' $testdir/io_test >/dev/null &
xfs_io -c 'pread -b 64k 0 512m' $testdir/io_test > /dev/null
xfs_io -F -f -d -c 'pwrite -b 64k 0 512m' $testdir/io_test > /dev/null
xfs_io -F -f -c 'pwrite -b 64k 0 512m' $testdir/io_test >/dev/null &
xfs_io -F -c 'pread -b 64k 0 512m' $testdir/io_test > /dev/null
wait
rm $testdir/io_test
echo "Direct writer, buffered reader"
xfs_io -f -d -c 'pwrite -b 64k 0 512m' $testdir/io_test > /dev/null
xfs_io -f -d -c 'pwrite -b 64k 0 512m' $testdir/io_test >/dev/null &
xfs_io -c 'pread -b 64k 0 512m' $testdir/io_test > /dev/null
xfs_io -F -f -d -c 'pwrite -b 64k 0 512m' $testdir/io_test > /dev/null
xfs_io -F -f -d -c 'pwrite -b 64k 0 512m' $testdir/io_test >/dev/null &
xfs_io -F -c 'pread -b 64k 0 512m' $testdir/io_test > /dev/null
wait
rm $testdir/io_test
echo "Buffered writer, direct reader"
xfs_io -f -d -c 'pwrite -b 64k 0 512m' $testdir/io_test > /dev/null
xfs_io -f -c 'pwrite -b 64k 0 512m' $testdir/io_test >/dev/null &
xfs_io -d -c 'pread -b 64k 0 512m' $testdir/io_test > /dev/null
xfs_io -F -f -d -c 'pwrite -b 64k 0 512m' $testdir/io_test > /dev/null
xfs_io -F -f -c 'pwrite -b 64k 0 512m' $testdir/io_test >/dev/null &
xfs_io -F -d -c 'pread -b 64k 0 512m' $testdir/io_test > /dev/null
wait
rm $testdir/io_test
echo "Direct writer, direct reader"
xfs_io -f -d -c 'pwrite -b 64k 0 512m' $testdir/io_test > /dev/null
xfs_io -f -d -c 'pwrite -b 64k 0 512m' $testdir/io_test >/dev/null &
xfs_io -d -c 'pread -b 64k 0 512m' $testdir/io_test > /dev/null
xfs_io -F -f -d -c 'pwrite -b 64k 0 512m' $testdir/io_test > /dev/null
xfs_io -F -f -d -c 'pwrite -b 64k 0 512m' $testdir/io_test >/dev/null &
xfs_io -F -d -c 'pread -b 64k 0 512m' $testdir/io_test > /dev/null
wait
rm $testdir/io_test