]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
xfstests: conditionalise allocsize option in 014
authorDave Chinner <dchinner@redhat.com>
Mon, 14 Feb 2011 00:23:29 +0000 (11:23 +1100)
committerDave Chinner <david@fromorbit.com>
Mon, 14 Feb 2011 00:23:29 +0000 (11:23 +1100)
allocsize is an XFS specific mount option, and hence causes the test
to fail on other filesystems. Only set the mount option on xfs
filesystems.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Josef Bacik <josef@redhat.com>
014

diff --git a/014 b/014
index e6e0a6f7f577144d89f485a973d27176cfbf61ee..057e4d95a178f8a493a2c4a20e156557a9de48c9 100755 (executable)
--- a/014
+++ b/014
@@ -53,8 +53,10 @@ _setup_testdir
 # ensure EOF preallocation doesn't massively extend the runtime of this test
 # by limiting the amount of preallocation and therefore the amount of blocks
 # zeroed during the truncfile test run.
-umount $TEST_DIR
-_test_mount -o allocsize=64k
+if [ "$FSTYP" == "xfs" ]; then
+       umount $TEST_DIR
+       _test_mount -o allocsize=64k
+fi
 
 echo "brevity is wit..."