public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH]: [xfstests] Make the requirement of projid32bit explicit in test 244
@ 2011-06-15  1:10 Chandra Seetharaman
  2011-06-17  0:27 ` Eric Sandeen
  0 siblings, 1 reply; 4+ messages in thread
From: Chandra Seetharaman @ 2011-06-15  1:10 UTC (permalink / raw)
  To: XFS Mailing List; +Cc: Eric Sandeen

Test 244 depends on projid32bit feature in mkfs.xfs. Not all versions
of xfsprogs provide that feature in mkfs.xfs.

This patch makes it an explicit requirement and avoids running the test
if the feature doesn't exist, instead of failing the test with an obscure
message.

Signed-Off-By: Chandra Seetharaman <sekharan@us.ibm.com>
---
diff --git a/244 b/244
index 99762a5..e9f8a3d 100755
--- a/244
+++ b/244
@@ -48,6 +48,7 @@ _cleanup()
 _supported_fs xfs
 _require_xfs_quota
 _require_scratch
+_require_projid32bit_in_xfs
 
 export MOUNT_OPTIONS="-opquota"
 
diff --git a/common.rc b/common.rc
index c510c66..4e051dc 100644
--- a/common.rc
+++ b/common.rc
@@ -797,6 +797,15 @@ _require_command()
     [ -n "$1" -a -x "$1" ] || _notrun "$_cmd utility required, skipped this test"
 }
 
+# this test requires the projid32bit feature to be available in
+# mkfs.xfs
+#
+_require_projid32bit_in_xfs()
+{
+        _scratch_mkfs_xfs -f -i projid32bit=0 2>&1 >/dev/null \
+	   || _notrun "mkfs.xfs doesn't have projid32bit feature"
+}
+
 # this test requires that external log/realtime devices are not in use
 #
 _require_nonexternal()


_______________________________________________
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] Make the requirement of projid32bit explicit in test 244
  2011-06-15  1:10 [PATCH]: [xfstests] Make the requirement of projid32bit explicit in test 244 Chandra Seetharaman
@ 2011-06-17  0:27 ` Eric Sandeen
  2011-06-17  0:46   ` Chandra Seetharaman
  0 siblings, 1 reply; 4+ messages in thread
From: Eric Sandeen @ 2011-06-17  0:27 UTC (permalink / raw)
  To: sekharan; +Cc: Eric Sandeen, XFS Mailing List

On 6/14/11 8:10 PM, Chandra Seetharaman wrote:
> Test 244 depends on projid32bit feature in mkfs.xfs. Not all versions
> of xfsprogs provide that feature in mkfs.xfs.
> 
> This patch makes it an explicit requirement and avoids running the test
> if the feature doesn't exist, instead of failing the test with an obscure
> message.
> 
> Signed-Off-By: Chandra Seetharaman <sekharan@us.ibm.com>

This is fine; I'd prefer to check it in with just _require_projid32bit
and drop the _in_xfs if that's ok with you, it's an xfs-only test
anyway so it's just a bit wordy :)

Thanks,
-Eric

> ---
> diff --git a/244 b/244
> index 99762a5..e9f8a3d 100755
> --- a/244
> +++ b/244
> @@ -48,6 +48,7 @@ _cleanup()
>  _supported_fs xfs
>  _require_xfs_quota
>  _require_scratch
> +_require_projid32bit_in_xfs
>  
>  export MOUNT_OPTIONS="-opquota"
>  
> diff --git a/common.rc b/common.rc
> index c510c66..4e051dc 100644
> --- a/common.rc
> +++ b/common.rc
> @@ -797,6 +797,15 @@ _require_command()
>      [ -n "$1" -a -x "$1" ] || _notrun "$_cmd utility required, skipped this test"
>  }
>  
> +# this test requires the projid32bit feature to be available in
> +# mkfs.xfs
> +#
> +_require_projid32bit_in_xfs()
> +{
> +        _scratch_mkfs_xfs -f -i projid32bit=0 2>&1 >/dev/null \
> +	   || _notrun "mkfs.xfs doesn't have projid32bit feature"
> +}
> +
>  # this test requires that external log/realtime devices are not in use
>  #
>  _require_nonexternal()
> 
> 
> _______________________________________________
> 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

* Re: [PATCH]: [xfstests] Make the requirement of projid32bit explicit in test 244
  2011-06-17  0:27 ` Eric Sandeen
@ 2011-06-17  0:46   ` Chandra Seetharaman
  2011-06-17 13:53     ` Eric Sandeen
  0 siblings, 1 reply; 4+ messages in thread
From: Chandra Seetharaman @ 2011-06-17  0:46 UTC (permalink / raw)
  To: Eric Sandeen; +Cc: Eric Sandeen, XFS Mailing List


On Thu, 2011-06-16 at 19:27 -0500, Eric Sandeen wrote:
> On 6/14/11 8:10 PM, Chandra Seetharaman wrote:
> > Test 244 depends on projid32bit feature in mkfs.xfs. Not all versions
> > of xfsprogs provide that feature in mkfs.xfs.
> > 
> > This patch makes it an explicit requirement and avoids running the test
> > if the feature doesn't exist, instead of failing the test with an obscure
> > message.
> > 
> > Signed-Off-By: Chandra Seetharaman <sekharan@us.ibm.com>
> 
> This is fine; I'd prefer to check it in with just _require_projid32bit
> and drop the _in_xfs if that's ok with you, it's an xfs-only test
> anyway so it's just a bit wordy :)

Fine by me. You want me to reroll the patch ?

chandra
> 
> Thanks,
> -Eric
> 
> > ---
> > diff --git a/244 b/244
> > index 99762a5..e9f8a3d 100755
> > --- a/244
> > +++ b/244
> > @@ -48,6 +48,7 @@ _cleanup()
> >  _supported_fs xfs
> >  _require_xfs_quota
> >  _require_scratch
> > +_require_projid32bit_in_xfs
> >  
> >  export MOUNT_OPTIONS="-opquota"
> >  
> > diff --git a/common.rc b/common.rc
> > index c510c66..4e051dc 100644
> > --- a/common.rc
> > +++ b/common.rc
> > @@ -797,6 +797,15 @@ _require_command()
> >      [ -n "$1" -a -x "$1" ] || _notrun "$_cmd utility required, skipped this test"
> >  }
> >  
> > +# this test requires the projid32bit feature to be available in
> > +# mkfs.xfs
> > +#
> > +_require_projid32bit_in_xfs()
> > +{
> > +        _scratch_mkfs_xfs -f -i projid32bit=0 2>&1 >/dev/null \
> > +	   || _notrun "mkfs.xfs doesn't have projid32bit feature"
> > +}
> > +
> >  # this test requires that external log/realtime devices are not in use
> >  #
> >  _require_nonexternal()
> > 
> > 
> > _______________________________________________
> > 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

* Re: [PATCH]: [xfstests] Make the requirement of projid32bit explicit in test 244
  2011-06-17  0:46   ` Chandra Seetharaman
@ 2011-06-17 13:53     ` Eric Sandeen
  0 siblings, 0 replies; 4+ messages in thread
From: Eric Sandeen @ 2011-06-17 13:53 UTC (permalink / raw)
  To: sekharan; +Cc: Eric Sandeen, XFS Mailing List

On 6/16/11 7:46 PM, Chandra Seetharaman wrote:
> 
> On Thu, 2011-06-16 at 19:27 -0500, Eric Sandeen wrote:
>> On 6/14/11 8:10 PM, Chandra Seetharaman wrote:
>>> Test 244 depends on projid32bit feature in mkfs.xfs. Not all versions
>>> of xfsprogs provide that feature in mkfs.xfs.
>>>
>>> This patch makes it an explicit requirement and avoids running the test
>>> if the feature doesn't exist, instead of failing the test with an obscure
>>> message.
>>>
>>> Signed-Off-By: Chandra Seetharaman <sekharan@us.ibm.com>
>>
>> This is fine; I'd prefer to check it in with just _require_projid32bit
>> and drop the _in_xfs if that's ok with you, it's an xfs-only test
>> anyway so it's just a bit wordy :)
> 
> Fine by me. You want me to reroll the patch ?

I'll just fix it with a note on the way in since you agree, thanks.

-Eric

> chandra
>>
>> Thanks,
>> -Eric
>>
>>> ---
>>> diff --git a/244 b/244
>>> index 99762a5..e9f8a3d 100755
>>> --- a/244
>>> +++ b/244
>>> @@ -48,6 +48,7 @@ _cleanup()
>>>  _supported_fs xfs
>>>  _require_xfs_quota
>>>  _require_scratch
>>> +_require_projid32bit_in_xfs
>>>  
>>>  export MOUNT_OPTIONS="-opquota"
>>>  
>>> diff --git a/common.rc b/common.rc
>>> index c510c66..4e051dc 100644
>>> --- a/common.rc
>>> +++ b/common.rc
>>> @@ -797,6 +797,15 @@ _require_command()
>>>      [ -n "$1" -a -x "$1" ] || _notrun "$_cmd utility required, skipped this test"
>>>  }
>>>  
>>> +# this test requires the projid32bit feature to be available in
>>> +# mkfs.xfs
>>> +#
>>> +_require_projid32bit_in_xfs()
>>> +{
>>> +        _scratch_mkfs_xfs -f -i projid32bit=0 2>&1 >/dev/null \
>>> +	   || _notrun "mkfs.xfs doesn't have projid32bit feature"
>>> +}
>>> +
>>>  # this test requires that external log/realtime devices are not in use
>>>  #
>>>  _require_nonexternal()
>>>
>>>
>>> _______________________________________________
>>> 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:[~2011-06-17 13:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-15  1:10 [PATCH]: [xfstests] Make the requirement of projid32bit explicit in test 244 Chandra Seetharaman
2011-06-17  0:27 ` Eric Sandeen
2011-06-17  0:46   ` Chandra Seetharaman
2011-06-17 13:53     ` Eric Sandeen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox