public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* xfstests: getfacl -n unsupported in older acl package
@ 2010-11-30 13:47 Boris Ranto
  2010-11-30 16:45 ` Christoph Hellwig
  2010-11-30 23:12 ` Dave Chinner
  0 siblings, 2 replies; 3+ messages in thread
From: Boris Ranto @ 2010-11-30 13:47 UTC (permalink / raw)
  To: xfs

Test cases 051 and 067 use getfacl with option -n. This works well on newer systems but older acl package know only its longer version: --numeric.

I've tested the two tests with long option and they both passed.

Therefore I'd propose this patch to fix this for earlier acl versions:

diff -uprN /var/lib/xfstests-orig/051 /var/lib/xfstests/051
--- /var/lib/xfstests-orig/051	2010-11-30 08:29:36.000000000 -0500
+++ /var/lib/xfstests/051	2010-11-30 08:28:18.000000000 -0500
@@ -343,23 +343,23 @@ acl5=`_create_n_aces 17` # 1 over A.G. l
 
 echo "1 below xfs acl max"
 chacl $acl1 largeaclfile
-getfacl -n largeaclfile | _filter_aces
+getfacl --numeric largeaclfile | _filter_aces
 
 echo "xfs acl max"
 chacl $acl2 largeaclfile
-getfacl -n largeaclfile | _filter_aces
+getfacl --numeric largeaclfile | _filter_aces
 
 echo "1 above xfs acl max"
 chacl $acl3 largeaclfile
-getfacl -n largeaclfile | _filter_aces
+getfacl --numeric largeaclfile | _filter_aces
 
 echo "use 16 aces"
 chacl $acl4 largeaclfile
-getfacl -n largeaclfile | _filter_aces
+getfacl --numeric largeaclfile | _filter_aces
 
 echo "use 17 aces"
 chacl $acl5 largeaclfile
-getfacl -n largeaclfile | _filter_aces
+getfacl --numeric largeaclfile | _filter_aces
 
 #-------------------------------------------------------
 
diff -uprN /var/lib/xfstests-orig/067 /var/lib/xfstests/067
--- /var/lib/xfstests-orig/067	2010-11-30 08:29:10.000000000 -0500
+++ /var/lib/xfstests/067	2010-11-30 08:31:28.000000000 -0500
@@ -73,19 +73,19 @@ acl21=`_create_n_aces 21`
 
 echo "try 20 aces for access acl"
 chacl $acl20 largeacldir
-getfacl -n largeacldir | _filter_aces
+getfacl --numeric largeacldir | _filter_aces
 
 echo "try 20 aces for default acl"
 chacl -d $acl20 largeacldir
-getfacl -n largeacldir | _filter_aces
+getfacl --numeric largeacldir | _filter_aces
 
 echo "try 21 aces for access acl"
 chacl $acl21 largeacldir
-getfacl -n largeacldir | _filter_aces
+getfacl --numeric largeacldir | _filter_aces
 
 echo "try 21 aces for default acl"
 chacl -d $acl21 largeacldir
-getfacl -n largeacldir | _filter_aces
+getfacl --numeric largeacldir | _filter_aces
 
 # success, all done
 status=0

Signed-off-by: Boris Ranto <branto@redhat.com>

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: xfstests: getfacl -n unsupported in older acl package
  2010-11-30 13:47 xfstests: getfacl -n unsupported in older acl package Boris Ranto
@ 2010-11-30 16:45 ` Christoph Hellwig
  2010-11-30 23:12 ` Dave Chinner
  1 sibling, 0 replies; 3+ messages in thread
From: Christoph Hellwig @ 2010-11-30 16:45 UTC (permalink / raw)
  To: Boris Ranto; +Cc: xfs

On Tue, Nov 30, 2010 at 02:47:38PM +0100, Boris Ranto wrote:
> Test cases 051 and 067 use getfacl with option -n. This works well on newer systems but older acl package know only its longer version: --numeric.
> 
> I've tested the two tests with long option and they both passed.
> 
> Therefore I'd propose this patch to fix this for earlier acl versions:

Looks fine to me.  I'll check in after a small delay for the others to
comments. 

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: xfstests: getfacl -n unsupported in older acl package
  2010-11-30 13:47 xfstests: getfacl -n unsupported in older acl package Boris Ranto
  2010-11-30 16:45 ` Christoph Hellwig
@ 2010-11-30 23:12 ` Dave Chinner
  1 sibling, 0 replies; 3+ messages in thread
From: Dave Chinner @ 2010-11-30 23:12 UTC (permalink / raw)
  To: Boris Ranto; +Cc: xfs

On Tue, Nov 30, 2010 at 02:47:38PM +0100, Boris Ranto wrote:
> Test cases 051 and 067 use getfacl with option -n. This works well on newer systems but older acl package know only its longer version: --numeric.
> 
> I've tested the two tests with long option and they both passed.
> 
> Therefore I'd propose this patch to fix this for earlier acl versions:

Looks fine to me.

Cheers,

Dave.
-- 
Dave Chinner
david@fromorbit.com

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-11-30 23:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-30 13:47 xfstests: getfacl -n unsupported in older acl package Boris Ranto
2010-11-30 16:45 ` Christoph Hellwig
2010-11-30 23:12 ` Dave Chinner

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