* [PATCH] xfstests: Allow fsx tests to run on generic filesystems
@ 2009-06-08 15:44 Eric Sandeen
2009-06-08 16:16 ` Christoph Hellwig
2009-06-08 22:20 ` Felix Blyakher
0 siblings, 2 replies; 4+ messages in thread
From: Eric Sandeen @ 2009-06-08 15:44 UTC (permalink / raw)
To: xfs mailing list
There is already logic in 075 to gracefully skip nfs for fsx
invocations with -x (xfs-specific preallocation) - just extend
this to any non-xfs filesystem, and add to test 112 as well.
Later we can change this behavior to use fallocate and include
more filesystems but this gets some fsx coverage for now.
Test 127 doesn't seem to have anything xfs-specific, so mark
that as generic too.
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
---
diff --git a/075 b/075
index 7948c1f..49d006d 100755
--- a/075
+++ b/075
@@ -66,11 +66,11 @@ _do_test()
echo "fsx.$_n : $_filter_param"
echo "-----------------------------------------------"
- if [ "$FSTYP" = "nfs" ]
+ if [ "$FSTYP" != "xfs" ]
then
if [ "$_n" = "1" -o "$_n" = "3" ]
then
- # HACK: nfs don't handle preallocation (-x) so just skip this test
+ # HACK: only xfs handles preallocation (-x) so just skip this test
return
fi
fi
@@ -124,7 +124,7 @@ _process_args()
# real QA test starts here
-_supported_fs xfs udf nfs
+_supported_fs generic
_supported_os IRIX Linux
size10=`expr 10 \* 1024 \* 1024` # 10 megabytes
diff --git a/112 b/112
index 70fa487..d6c2952 100755
--- a/112
+++ b/112
@@ -66,6 +66,15 @@ _do_test()
echo "fsx.$_n : $_filter_param"
echo "-----------------------------------------------"
+ if [ "$FSTYP" != "xfs" ]
+ then
+ if [ "$_n" = "1" -o "$_n" = "3" ]
+ then
+ # HACK: only xfs handles preallocation (-x) so just skip this test
+ return
+ fi
+ fi
+
# This cd and use of -P gets full debug on $here (not TEST_DEV)
cd $out
if ! $here/ltp/fsx $_param -P $here $seq.$_n >/dev/null
@@ -113,7 +122,7 @@ _process_args()
# real QA test starts here
-_supported_fs xfs
+_supported_fs generic
_supported_os Linux
[ -x $here/ltp/aio-stress ] || \
diff --git a/127 b/127
index 44db4fb..30f4fdb 100755
--- a/127
+++ b/127
@@ -103,7 +103,7 @@ _fsx_std_mmap()
}
# real QA test starts here
-_supported_fs xfs
+_supported_fs generic
_supported_os Linux
_setup_testdir
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH] xfstests: Allow fsx tests to run on generic filesystems
2009-06-08 15:44 [PATCH] xfstests: Allow fsx tests to run on generic filesystems Eric Sandeen
@ 2009-06-08 16:16 ` Christoph Hellwig
2009-06-08 16:26 ` Eric Sandeen
2009-06-08 22:20 ` Felix Blyakher
1 sibling, 1 reply; 4+ messages in thread
From: Christoph Hellwig @ 2009-06-08 16:16 UTC (permalink / raw)
To: Eric Sandeen; +Cc: xfs mailing list
On Mon, Jun 08, 2009 at 10:44:35AM -0500, Eric Sandeen wrote:
> There is already logic in 075 to gracefully skip nfs for fsx
> invocations with -x (xfs-specific preallocation) - just extend
> this to any non-xfs filesystem, and add to test 112 as well.
>
> Later we can change this behavior to use fallocate and include
> more filesystems but this gets some fsx coverage for now.
>
> Test 127 doesn't seem to have anything xfs-specific, so mark
> that as generic too.
Good bandaid for now, but it would be even better to get a fsx
version using the generic prealloc calls one day :)
Reviewed-by: Christoph Hellwig <hch@lst.de>
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] xfstests: Allow fsx tests to run on generic filesystems
2009-06-08 16:16 ` Christoph Hellwig
@ 2009-06-08 16:26 ` Eric Sandeen
0 siblings, 0 replies; 4+ messages in thread
From: Eric Sandeen @ 2009-06-08 16:26 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: xfs mailing list
Christoph Hellwig wrote:
> On Mon, Jun 08, 2009 at 10:44:35AM -0500, Eric Sandeen wrote:
>> There is already logic in 075 to gracefully skip nfs for fsx
>> invocations with -x (xfs-specific preallocation) - just extend
>> this to any non-xfs filesystem, and add to test 112 as well.
>>
>> Later we can change this behavior to use fallocate and include
>> more filesystems but this gets some fsx coverage for now.
>>
>> Test 127 doesn't seem to have anything xfs-specific, so mark
>> that as generic too.
>
> Good bandaid for now, but it would be even better to get a fsx
> version using the generic prealloc calls one day :)
Will do after we're done w/ the planned fsx gyrations....
-Eric
> Reviewed-by: Christoph Hellwig <hch@lst.de>
>
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] xfstests: Allow fsx tests to run on generic filesystems
2009-06-08 15:44 [PATCH] xfstests: Allow fsx tests to run on generic filesystems Eric Sandeen
2009-06-08 16:16 ` Christoph Hellwig
@ 2009-06-08 22:20 ` Felix Blyakher
1 sibling, 0 replies; 4+ messages in thread
From: Felix Blyakher @ 2009-06-08 22:20 UTC (permalink / raw)
To: Eric Sandeen; +Cc: xfs mailing list
On Jun 8, 2009, at 10:44 AM, Eric Sandeen wrote:
> There is already logic in 075 to gracefully skip nfs for fsx
> invocations with -x (xfs-specific preallocation) - just extend
> this to any non-xfs filesystem, and add to test 112 as well.
>
> Later we can change this behavior to use fallocate and include
> more filesystems but this gets some fsx coverage for now.
>
> Test 127 doesn't seem to have anything xfs-specific, so mark
> that as generic too.
>
>
> Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Felix Blyakher <felixb@sgi.com>
>
> ---
>
> diff --git a/075 b/075
> index 7948c1f..49d006d 100755
> --- a/075
> +++ b/075
> @@ -66,11 +66,11 @@ _do_test()
> echo "fsx.$_n : $_filter_param"
> echo "-----------------------------------------------"
>
> - if [ "$FSTYP" = "nfs" ]
> + if [ "$FSTYP" != "xfs" ]
> then
> if [ "$_n" = "1" -o "$_n" = "3" ]
> then
> - # HACK: nfs don't handle preallocation (-x) so just skip this
> test
> + # HACK: only xfs handles preallocation (-x) so just skip this
> test
> return
> fi
> fi
> @@ -124,7 +124,7 @@ _process_args()
>
>
> # real QA test starts here
> -_supported_fs xfs udf nfs
> +_supported_fs generic
> _supported_os IRIX Linux
>
> size10=`expr 10 \* 1024 \* 1024` # 10 megabytes
> diff --git a/112 b/112
> index 70fa487..d6c2952 100755
> --- a/112
> +++ b/112
> @@ -66,6 +66,15 @@ _do_test()
> echo "fsx.$_n : $_filter_param"
> echo "-----------------------------------------------"
>
> + if [ "$FSTYP" != "xfs" ]
> + then
> + if [ "$_n" = "1" -o "$_n" = "3" ]
> + then
> + # HACK: only xfs handles preallocation (-x) so just
> skip this test
> + return
> + fi
> + fi
> +
> # This cd and use of -P gets full debug on $here (not TEST_DEV)
> cd $out
> if ! $here/ltp/fsx $_param -P $here $seq.$_n >/dev/null
> @@ -113,7 +122,7 @@ _process_args()
>
>
> # real QA test starts here
> -_supported_fs xfs
> +_supported_fs generic
> _supported_os Linux
>
> [ -x $here/ltp/aio-stress ] || \
> diff --git a/127 b/127
> index 44db4fb..30f4fdb 100755
> --- a/127
> +++ b/127
> @@ -103,7 +103,7 @@ _fsx_std_mmap()
> }
>
> # real QA test starts here
> -_supported_fs xfs
> +_supported_fs generic
> _supported_os Linux
>
> _setup_testdir
>
>
> _______________________________________________
> xfs mailing list
> xfs@oss.sgi.com
> http://oss.sgi.com/mailman/listinfo/xfs
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-06-08 22:20 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-08 15:44 [PATCH] xfstests: Allow fsx tests to run on generic filesystems Eric Sandeen
2009-06-08 16:16 ` Christoph Hellwig
2009-06-08 16:26 ` Eric Sandeen
2009-06-08 22:20 ` Felix Blyakher
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox