IRIX doesn't support -q option to pwrite so redirect output of command to /dev/null.

Merge of master-melb:xfs-cmds:27178a by kenmcd.

  IRIX doesn't support -q option to pwrite so redirect output of command to /dev/null.
This commit is contained in:
Lachlan McIlroy
2006-10-12 16:00:23 +00:00
parent 67b6aae742
commit 219dbd9f08
+12 -12
View File
@@ -34,30 +34,30 @@ _supported_os Linux IRIX
_setup_testdir
echo "Buffered writer, buffered reader"
xfs_io -f -d -c 'pwrite -q -b 64k 0 512m' $testdir/io_test
xfs_io -f -c 'pwrite -q -b 64k 0 512m' $testdir/io_test &
xfs_io -c 'pread -q -b 64k 0 512m' $testdir/io_test
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
wait
rm $testdir/io_test
echo "Direct writer, buffered reader"
xfs_io -f -d -c 'pwrite -q -b 64k 0 512m' $testdir/io_test
xfs_io -f -d -c 'pwrite -q -b 64k 0 512m' $testdir/io_test &
xfs_io -c 'pread -q -b 64k 0 512m' $testdir/io_test
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
wait
rm $testdir/io_test
echo "Buffered writer, direct reader"
xfs_io -f -d -c 'pwrite -q -b 64k 0 512m' $testdir/io_test
xfs_io -f -c 'pwrite -q -b 64k 0 512m' $testdir/io_test &
xfs_io -d -c 'pread -q -b 64k 0 512m' $testdir/io_test
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
wait
rm $testdir/io_test
echo "Direct writer, direct reader"
xfs_io -f -d -c 'pwrite -q -b 64k 0 512m' $testdir/io_test
xfs_io -f -d -c 'pwrite -q -b 64k 0 512m' $testdir/io_test &
xfs_io -d -c 'pread -q -b 64k 0 512m' $testdir/io_test
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
wait
rm $testdir/io_test