* [PATCH] Xfstests: make 014 only run on xfs
@ 2011-01-26 14:05 Josef Bacik
2011-01-26 16:56 ` Christoph Hellwig
2011-01-27 0:59 ` Dave Chinner
0 siblings, 2 replies; 5+ messages in thread
From: Josef Bacik @ 2011-01-26 14:05 UTC (permalink / raw)
To: 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,
Signed-off-by: Josef Bacik <josef@redhat.com>
---
014 | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/014 b/014
index e6e0a6f..c6be9bd 100755
--- a/014
+++ b/014
@@ -44,7 +44,7 @@ _cleanup()
. ./common.rc
. ./common.filter
-_supported_fs generic
+_supported_fs xfs
_supported_os IRIX Linux
_require_sparse_files
--
1.6.6.1
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] Xfstests: make 014 only run on xfs
2011-01-26 14:05 [PATCH] Xfstests: make 014 only run on xfs Josef Bacik
@ 2011-01-26 16:56 ` Christoph Hellwig
2011-01-27 0:59 ` Dave Chinner
1 sibling, 0 replies; 5+ messages in thread
From: Christoph Hellwig @ 2011-01-26 16:56 UTC (permalink / raw)
To: Josef Bacik; +Cc: xfs
On Wed, Jan 26, 2011 at 09:05:29AM -0500, Josef Bacik wrote:
> 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
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Xfstests: make 014 only run on xfs
2011-01-26 14:05 [PATCH] Xfstests: make 014 only run on xfs Josef Bacik
2011-01-26 16:56 ` Christoph Hellwig
@ 2011-01-27 0:59 ` Dave Chinner
2011-02-01 23:48 ` Alex Elder
1 sibling, 1 reply; 5+ messages in thread
From: Dave Chinner @ 2011-01-27 0:59 UTC (permalink / raw)
To: Josef Bacik; +Cc: xfs
On Wed, Jan 26, 2011 at 09:05:29AM -0500, Josef Bacik wrote:
> 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.
--
Dave Chinner
david@fromorbit.com
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>
---
014 | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/014 b/014
index e6e0a6f..057e4d9 100755
--- 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..."
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] Xfstests: make 014 only run on xfs
2011-01-27 0:59 ` Dave Chinner
@ 2011-02-01 23:48 ` Alex Elder
2011-02-02 0:58 ` Josef Bacik
0 siblings, 1 reply; 5+ messages in thread
From: Alex Elder @ 2011-02-01 23:48 UTC (permalink / raw)
To: Dave Chinner; +Cc: Josef Bacik, xfs
On Thu, 2011-01-27 at 11:59 +1100, Dave Chinner wrote:
> On Wed, Jan 26, 2011 at 09:05:29AM -0500, Josef Bacik wrote:
> > 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
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Xfstests: make 014 only run on xfs
2011-02-01 23:48 ` Alex Elder
@ 2011-02-02 0:58 ` Josef Bacik
0 siblings, 0 replies; 5+ messages in thread
From: Josef Bacik @ 2011-02-02 0:58 UTC (permalink / raw)
To: Alex Elder; +Cc: Josef Bacik, xfs
On Tue, Feb 01, 2011 at 05:48:57PM -0600, Alex Elder wrote:
> On Thu, 2011-01-27 at 11:59 +1100, Dave Chinner wrote:
> > On Wed, Jan 26, 2011 at 09:05:29AM -0500, Josef Bacik wrote:
> > > 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?
>
Yup looks reasonable and runs fine on btrfs. You can add
Signed-off-by: Josef Bacik <josef@redhat.com>
Thanks,
Josef
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-02-02 1:00 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-26 14:05 [PATCH] Xfstests: make 014 only run on xfs Josef Bacik
2011-01-26 16:56 ` Christoph Hellwig
2011-01-27 0:59 ` Dave Chinner
2011-02-01 23:48 ` Alex Elder
2011-02-02 0:58 ` Josef Bacik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox