}
# real QA test starts here
-_supported_fs xfs
+_supported_fs generic
_supported_os Linux IRIX
_setup_testdir
_scratch_mount
echo "End-of-file zeroing with direct I/O"
-xfs_io -f -d -t -c "pwrite -S 0x63 0 65536" \
+xfs_io -F -f -d -t -c "pwrite -S 0x63 0 65536" \
-c "truncate 1" \
-c "pwrite -S 0x41 65536 65536" \
-c "pread -v 0 131072" \
echo
echo "Basic Block Hole test"
-xfs_io -f -t -c "truncate 8192" \
+xfs_io -F -f -t -c "truncate 8192" \
-c "pread -v 5000 3000" \
$SCRATCH_MNT/blackhole | _filter_xfs_io
echo
echo "Test buffered and direct IO coherency"
-xfs_io -f -t -c "pwrite -S 0x41 8000 1000" \
+xfs_io -F -f -t -c "pwrite -S 0x41 8000 1000" \
-c "pwrite -S 0x57 4000 1000" \
$SCRATCH_MNT/buff_direct_coherency | _filter_xfs_io
-xfs_io -d -c "pwrite -S 0x78 20480 4096"\
+xfs_io -F -d -c "pwrite -S 0x78 20480 4096"\
-c "pwrite -S 0x79 4096 4096"\
$SCRATCH_MNT/buff_direct_coherency | _filter_xfs_io
-xfs_io -c "pread -v 0 9000"\
+xfs_io -F -c "pread -v 0 9000"\
$SCRATCH_MNT/buff_direct_coherency | _filter_xfs_io
echo
echo "Test direct read and write"
-xfs_io -f -d -t -c "pwrite -S 0x78 0 65536"\
+xfs_io -F -f -d -t -c "pwrite -S 0x78 0 65536"\
-c "pread -v 0 65536"\
-c "pwrite -S 0x46 65536 6553600"\
-c "pread -v 0 6619136"\
$SCRATCH_MNT/direct_io | _filter_xfs_io
-xfs_io -d -c "pread -v 0 6619136"\
+xfs_io -F -d -c "pread -v 0 6619136"\
$SCRATCH_MNT/direct_io | _filter_xfs_io
-xfs_io -f -d -t -c "pwrite -S 0x61 0 65536"\
+xfs_io -F -f -d -t -c "pwrite -S 0x61 0 65536"\
-c "pread -v 0 65536"\
-c "pwrite -S 0x62 65536 131072"\
-c "pread -v 0 131072"\
$SCRATCH_MNT/async_direct_io | _filter_xfs_io
-xfs_io -d -c "pread -v 0 131072"\
+xfs_io -F -d -c "pread -v 0 131072"\
$SCRATCH_MNT/async_direct_io | _filter_xfs_io
echo
echo "FSB Edge test"
-xfs_io -f -t -c "truncate 131072"\
+xfs_io -F -f -t -c "truncate 131072"\
-c "pwrite -S 0x5F 0 131072"\
-c "truncate 0"\
-c "truncate 131072"\
echo "Open Trunk test (O_TRUNC)"
for n in 0 1 2 3 4
do
- xfs_io -f -t -c "pread -v 0 100" $SCRATCH_MNT/$n | _filter_xfs_io
+ xfs_io -F -f -t -c "pread -v 0 100" $SCRATCH_MNT/$n | _filter_xfs_io
echo "Test" > $SCRATCH_MNT/$n
- xfs_io -f -t -c "pread -v 0 100" $SCRATCH_MNT/$n | _filter_xfs_io
+ xfs_io -F -f -t -c "pread -v 0 100" $SCRATCH_MNT/$n | _filter_xfs_io
cat $SCRATCH_MNT/$n
done
echo "DONE"
echo
echo "Append test"
echo "append to me" > $SCRATCH_MNT/append
-xfs_io -a -c "pwrite -S 0x61 0 10" \
+xfs_io -F -a -c "pwrite -S 0x61 0 10" \
-c "pread -v 0 24"\
$SCRATCH_MNT/append | _filter_xfs_io
echo
echo "Small Vector Async"
echo "abcdefghijklmnopqrstuvwxyz" > $SCRATCH_MNT/small_vector_async
-xfs_io -f -c "pread -v 0 1"\
+xfs_io -F -f -c "pread -v 0 1"\
-c "pread -v 1 1"\
-c "pread -v 2 1"\
-c "pread -v 3 1"\
echo
echo "Small Vector Sync"
echo "abcdefghijklmnopqrstuvwxyz" > $SCRATCH_MNT/small_vector_async
-xfs_io -f -s -c "pread -v 0 1"\
+xfs_io -F -f -s -c "pread -v 0 1"\
-c "pread -v 1 1"\
-c "pread -v 2 1"\
-c "pread -v 3 1"\
}
# real QA test starts here
-_supported_fs xfs
+_supported_fs generic
_supported_os Linux IRIX
_setup_testdir
_scratch_mkfs >/dev/null 2>&1
_scratch_mount
-xfs_io -f -t -c "pwrite -S 0x63 0 512" \
+xfs_io -F -f -t -c "pwrite -S 0x63 0 512" \
-c "pwrite -S 0x64 512 512" \
-c "pwrite -S 0x65 1024 512" \
-c "pwrite -S 0x66 1536 512" \
-c "pread -v 3584 512" \
$SCRATCH_MNT/aligned_vector_rw | _filter_xfs_io
-xfs_io -f -c "pwrite -S 0x63 4096 1024" \
+xfs_io -F -f -c "pwrite -S 0x63 4096 1024" \
-c "pwrite -S 0x6B 5120 1024" \
-c "pwrite -S 0x6C 6144 1024" \
-c "pwrite -S 0x6D 7168 1024" \
-c "pread -v 7168 1024" \
$SCRATCH_MNT/aligned_vector_rw | _filter_xfs_io
-xfs_io -f -c "pwrite -S 0x6E 8192 2048" \
+xfs_io -F -f -c "pwrite -S 0x6E 8192 2048" \
-c "pwrite -S 0x6F 10240 2048" \
-c "pread -v 0 2048" \
-c "pread -v 2048 2048" \
-c "pread -v 10240 2048" \
$SCRATCH_MNT/aligned_vector_rw | _filter_xfs_io
-xfs_io -f -c "pwrite -S 0x70 12288 4096" \
+xfs_io -F -f -c "pwrite -S 0x70 12288 4096" \
-c "pread -v 0 4096" \
-c "pread -v 4096 4096" \
-c "pread -v 8192 4096" \
-c "pread -v 12288 4096" \
$SCRATCH_MNT/aligned_vector_rw | _filter_xfs_io
-xfs_io -f -c "pwrite -S 0x71 16384 8192" \
+xfs_io -F -f -c "pwrite -S 0x71 16384 8192" \
-c "pwrite -S 0x72 24576 8192" \
-c "pread -v 0 8192" \
-c "pread -v 8192 8192" \
-c "pread -v 16384 8192" \
$SCRATCH_MNT/aligned_vector_rw | _filter_xfs_io
-xfs_io -f -c "pwrite -S 0x73 32768 16384" \
+xfs_io -F -f -c "pwrite -S 0x73 32768 16384" \
-c "pwrite -S 0x74 49152 16384" \
-c "pread -v 0 16384" \
-c "pread -v 16384 16384" \
-c "pread -v 49152 16384" \
$SCRATCH_MNT/aligned_vector_rw | _filter_xfs_io
-xfs_io -f -c "pwrite -S 0x75 65536 32768" \
+xfs_io -F -f -c "pwrite -S 0x75 65536 32768" \
-c "pwrite -S 0x76 98304 32768" \
-c "pread -v 0 32768" \
-c "pread -v 32768 32768" \
-c "pread -v 98304 32768" \
$SCRATCH_MNT/aligned_vector_rw | _filter_xfs_io
-xfs_io -f -c "pwrite -S 0x76 131072 65536" \
+xfs_io -F -f -c "pwrite -S 0x76 131072 65536" \
-c "pwrite -S 0x77 196608 65536" \
-c "pread -v 0 65536" \
-c "pread -v 65536 65536" \
-c "pread -v 196608 65536" \
$SCRATCH_MNT/aligned_vector_rw | _filter_xfs_io
-xfs_io -f -c "pwrite -S 0x76 262144 131072" \
+xfs_io -F -f -c "pwrite -S 0x76 262144 131072" \
-c "pwrite -S 0x77 393216 131072" \
-c "pread -v 0 131072" \
-c "pread -v 131072 131072" \
-c "pread -v 393216 131072" \
$SCRATCH_MNT/aligned_vector_rw | _filter_xfs_io
-xfs_io -f -c "pwrite -S 0x76 524288 524288" \
+xfs_io -F -f -c "pwrite -S 0x76 524288 524288" \
-c "pwrite -S 0x77 1048576 524288" \
-c "pread -v 0 524288" \
-c "pread -v 524288 524288" \
-c "pread -v 1048576 524288" \
$SCRATCH_MNT/aligned_vector_rw | _filter_xfs_io
-xfs_io -f -c "pwrite -S 0x32 1048576 1048576" \
+xfs_io -F -f -c "pwrite -S 0x32 1048576 1048576" \
-c "pwrite -S 0x33 2097152 1048576" \
-c "pwrite -S 0x34 3145728 1048576" \
-c "pwrite -S 0x35 4194304 1048576" \
-c "pread -v 8388608 1048576" \
$SCRATCH_MNT/aligned_vector_rw | _filter_xfs_io
-xfs_io -f -c "pwrite -S 0x32 1048576 1048576" \
+xfs_io -F -f -c "pwrite -S 0x32 1048576 1048576" \
-c "pwrite -S 0x33 2097152 1048576" \
-c "pwrite -S 0x34 3145728 1048576" \
-c "pwrite -S 0x35 4194304 1048576" \
-c "pread -v 9437184 1048576" \
$SCRATCH_MNT/aligned_vector_rw | _filter_xfs_io
-xfs_io -f -c "pwrite -S 0x92 10485760 10485760" \
+xfs_io -F -f -c "pwrite -S 0x92 10485760 10485760" \
-c "pwrite -S 0x93 20971520 10485760" \
-c "pwrite -S 0x94 31457280 10485760" \
-c "pwrite -S 0x95 41943040 10485760" \
. ./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
. ./common.filter
# real QA test starts here
-_supported_fs xfs
+_supported_fs generic
_supported_os Linux IRIX
_setup_testdir
_require_scratch
-_scratch_mkfs_xfs >/dev/null 2>&1
+_scratch_mkfs >/dev/null 2>&1
_umount_mount()
{
cd $SCRATCH_MNT
# create file with async I/O
-xfs_io -f -c 'pwrite -b 4k -S 0x12 0 4k' async_file > /dev/null
+xfs_io -F -f -c 'pwrite -b 4k -S 0x12 0 4k' async_file > /dev/null
# create file with sync I/O
-xfs_io -f -s -c 'pwrite -b 4k -S 0x34 0 4k' sync_file > /dev/null
+xfs_io -F -f -s -c 'pwrite -b 4k -S 0x34 0 4k' sync_file > /dev/null
# create file with sync I/O
-xfs_io -f -d -c 'pwrite -b 4k -S 0x56 0 4k' direct_file > /dev/null
+xfs_io -F -f -d -c 'pwrite -b 4k -S 0x56 0 4k' direct_file > /dev/null
# create file, truncate and then dirty again
-xfs_io -f -c 'pwrite -b 4k -S 0x78 0 4k' trunc_file > /dev/null
-xfs_io -c 'truncate 2k' trunc_file > /dev/null
-xfs_io -c 'pwrite 1k 0 1k' trunc_file > /dev/null
+xfs_io -F -f -c 'pwrite -b 4k -S 0x78 0 4k' trunc_file > /dev/null
+xfs_io -F -f -c 'truncate 2k' trunc_file > /dev/null
+xfs_io -F -c 'pwrite 1k 0 1k' trunc_file > /dev/null
_umount_mount
. ./common.filter
# real QA test starts here
-_supported_fs xfs
+_supported_fs generic
_supported_os Linux
_setup_testdir
_require_scratch
-_scratch_mkfs_xfs >/dev/null 2>&1
+_scratch_mkfs >/dev/null 2>&1
_scratch_mount
# create file, mmap a region and mmap read it
file=$SCRATCH_MNT/mmap
-xfs_io -f -c "pwrite 0 1024k" -c "mmap 64k 64k" -c "mread -r" $file > /dev/null
+xfs_io -F -f -c "pwrite 0 1024k" -c "mmap 64k 64k" -c "mread -r" $file > /dev/null
rm -f $file
. ./common.filter
# real QA test starts here
-_supported_fs xfs
+_supported_fs generic
_supported_os Linux
_require_scratch
-_scratch_mkfs_xfs >>$seq.full 2>&1 \
+_scratch_mkfs >>$seq.full 2>&1 \
|| _fail "mkfs scratch failed"
_scratch_mount >>$seq.full 2>&1 \
touch $SCRATCH_MNT/testfile
echo "# appending 15k to new file, sync every 5k"
-xfs_io -a -c "pwrite 0 5k" -c "fsync" \
+xfs_io -F -a -c "pwrite 0 5k" -c "fsync" \
-c "pwrite 5k 5k" -c "fsync" \
-c "pwrite 10k 5k" -c "fsync" -c "stat" \
$SCRATCH_MNT/testfile \
|| _fail "mount failed: $MOUNT_OPTIONS"
echo "# stating file to confirm correct size"
-xfs_io -r -c "stat" $SCRATCH_MNT/testfile \
+xfs_io -F -r -c "stat" $SCRATCH_MNT/testfile \
| _show_wrote_and_stat_only
echo "# appending 10 bytes to new file, sync at 5 bytes"
-xfs_io -f -c "pwrite 0 5" -c s -c "pwrite 5 5" \
+xfs_io -F -f -c "pwrite 0 5" -c s -c "pwrite 5 5" \
-c "stat" $SCRATCH_MNT/nextfile \
| _show_wrote_and_stat_only
|| _fail "mount failed: $MOUNT_OPTIONS"
echo "# stating file to confirm correct size"
-xfs_io -r -c "stat" $SCRATCH_MNT/nextfile \
+xfs_io -F -r -c "stat" $SCRATCH_MNT/nextfile \
| _show_wrote_and_stat_only
# success, all done