Xfstests: make 014 only run on xfs
PATCH 1/1 Xfstests: make 014 only run on xfs
This test relies on mounting with -o allocsize, which is an xfs specific mount option, so make the test only work on xfs. Thanks,
--- 014 | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
014 +1 -1
@@ -44,7 +44,7 @@ _cleanup() . ./common.rc . ./common.filter -_supported_fs generic +_supported_fs xfs _supported_os IRIX Linux _require_sparse_files
Signature · 6 lines
1.6.6.1 _______________________________________________ xfs mailing list [email protected] http://oss.sgi.com/mailman/listinfo/xfs
Quoted 2 lines · Josef Bacik
This test relies on mounting with -o allocsize, which is an xfs specific mount option, so make the test only work on xfs. Thanks,
Except for the recently added option it's fine for other filesystems. Just conditionalize setting the option.
_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
Quoted 2 lines · Josef Bacik
This test relies on mounting with -o allocsize, which is an xfs specific mount option, so make the test only work on xfs. Thanks,
Oh, sorry, my fault. Perhaps something like this instead?
Cheers,
Dave.
Signature · 14 lines
Dave Chinner [email protected] 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 <[email protected]> --- 014 | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-)
014 +4 -2
@@ -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..."
_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
Quoted 5 lines · Dave Chinner
Quoted 2 lines · Josef Bacik
This test relies on mounting with -o allocsize, which is an xfs specific mount option, so make the test only work on xfs. Thanks,
Oh, sorry, my fault. Perhaps something like this instead?
Since test 014 reportedly works on other filesystem types provided the allocsize option isn't provided, Dave's version looks better.
Josef will you please take a look over--and preferably test--what Dave proposed, and if you agree offer your signoff?
Thanks.
-Alex
_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
Quoted 7 lines · Alex Elder
Quoted 5 lines · Dave Chinner
Quoted 2 lines · Josef Bacik
This test relies on mounting with -o allocsize, which is an xfs specific mount option, so make the test only work on xfs. Thanks,
Oh, sorry, my fault. Perhaps something like this instead?
Quoted 8 lines
Since test 014 reportedly works on other filesystem types provided the allocsize option isn't provided, Dave's version looks better.
Josef will you please take a look over--and preferably test--what Dave proposed, and if you agree offer your signoff?
Yup looks reasonable and runs fine on btrfs. You can add
Thanks,
Josef
_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs