xfstests: conditionalise allocsize option in 014

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>
This commit is contained in:
Dave Chinner
2011-02-14 11:23:29 +11:00
committed by Dave Chinner
parent 186b6bd2e8
commit 3c910c4bd2
+4 -2
View File
@@ -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..."