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
+3 -3
View File
@@ -42,18 +42,18 @@ _cleanup()
. ./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