mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user