mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
xfstests: have getfacl(1) report numeric id's
This patch arranges for calls to getfacl(1) to be given the "-n" flag, which requests that user and group id's be listed numerically rather than using names. The affected test output files are also updated to indicate the effect of the change. This eliminates some spurious output differences I was seeing, due to the presence of NIS in my test environment. Signed-off-by: Alex Elder <aelder@sgi.com> Reviewed-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
@@ -343,23 +343,23 @@ acl5=`_create_n_aces 17` # 1 over A.G. libacl initial size
|
||||
|
||||
echo "1 below xfs acl max"
|
||||
chacl $acl1 largeaclfile
|
||||
getfacl largeaclfile | _filter_aces
|
||||
getfacl -n largeaclfile | _filter_aces
|
||||
|
||||
echo "xfs acl max"
|
||||
chacl $acl2 largeaclfile
|
||||
getfacl largeaclfile | _filter_aces
|
||||
getfacl -n largeaclfile | _filter_aces
|
||||
|
||||
echo "1 above xfs acl max"
|
||||
chacl $acl3 largeaclfile
|
||||
getfacl largeaclfile | _filter_aces
|
||||
getfacl -n largeaclfile | _filter_aces
|
||||
|
||||
echo "use 16 aces"
|
||||
chacl $acl4 largeaclfile
|
||||
getfacl largeaclfile | _filter_aces
|
||||
getfacl -n largeaclfile | _filter_aces
|
||||
|
||||
echo "use 17 aces"
|
||||
chacl $acl5 largeaclfile
|
||||
getfacl largeaclfile | _filter_aces
|
||||
getfacl -n largeaclfile | _filter_aces
|
||||
|
||||
#-------------------------------------------------------
|
||||
|
||||
|
||||
@@ -222,8 +222,8 @@ chacl: a::rwx - Invalid argument
|
||||
=== Test out large ACLs ===
|
||||
1 below xfs acl max
|
||||
# file: largeaclfile
|
||||
# owner: root
|
||||
# group: root
|
||||
# owner: 0
|
||||
# group: 0
|
||||
user::rwx
|
||||
user:1:rwx
|
||||
user:2:rwx
|
||||
@@ -251,8 +251,8 @@ other::rwx
|
||||
|
||||
xfs acl max
|
||||
# file: largeaclfile
|
||||
# owner: root
|
||||
# group: root
|
||||
# owner: 0
|
||||
# group: 0
|
||||
user::rwx
|
||||
user:1:rwx
|
||||
user:2:rwx
|
||||
@@ -282,8 +282,8 @@ other::rwx
|
||||
1 above xfs acl max
|
||||
chacl: cannot set access acl on "largeaclfile": Invalid argument
|
||||
# file: largeaclfile
|
||||
# owner: root
|
||||
# group: root
|
||||
# owner: 0
|
||||
# group: 0
|
||||
user::rwx
|
||||
user:1:rwx
|
||||
user:2:rwx
|
||||
@@ -312,8 +312,8 @@ other::rwx
|
||||
|
||||
use 16 aces
|
||||
# file: largeaclfile
|
||||
# owner: root
|
||||
# group: root
|
||||
# owner: 0
|
||||
# group: 0
|
||||
user::rwx
|
||||
user:1:rwx
|
||||
user:2:rwx
|
||||
@@ -333,8 +333,8 @@ other::rwx
|
||||
|
||||
use 17 aces
|
||||
# file: largeaclfile
|
||||
# owner: root
|
||||
# group: root
|
||||
# owner: 0
|
||||
# group: 0
|
||||
user::rwx
|
||||
user:1:rwx
|
||||
user:2:rwx
|
||||
|
||||
@@ -72,19 +72,19 @@ acl21=`_create_n_aces 21`
|
||||
|
||||
echo "try 20 aces for access acl"
|
||||
chacl $acl20 largeacldir
|
||||
getfacl largeacldir | _filter_aces
|
||||
getfacl -n largeacldir | _filter_aces
|
||||
|
||||
echo "try 20 aces for default acl"
|
||||
chacl -d $acl20 largeacldir
|
||||
getfacl largeacldir | _filter_aces
|
||||
getfacl -n largeacldir | _filter_aces
|
||||
|
||||
echo "try 21 aces for access acl"
|
||||
chacl $acl21 largeacldir
|
||||
getfacl largeacldir | _filter_aces
|
||||
getfacl -n largeacldir | _filter_aces
|
||||
|
||||
echo "try 21 aces for default acl"
|
||||
chacl -d $acl21 largeacldir
|
||||
getfacl largeacldir | _filter_aces
|
||||
getfacl -n largeacldir | _filter_aces
|
||||
|
||||
# success, all done
|
||||
status=0
|
||||
|
||||
@@ -3,8 +3,8 @@ QA output created by 067
|
||||
=== Test out large ACLs ===
|
||||
try 20 aces for access acl
|
||||
# file: largeacldir
|
||||
# owner: root
|
||||
# group: root
|
||||
# owner: 0
|
||||
# group: 0
|
||||
user::rwx
|
||||
user:1:rwx
|
||||
user:2:rwx
|
||||
@@ -28,8 +28,8 @@ other::rwx
|
||||
|
||||
try 20 aces for default acl
|
||||
# file: largeacldir
|
||||
# owner: root
|
||||
# group: root
|
||||
# owner: 0
|
||||
# group: 0
|
||||
user::rwx
|
||||
user:1:rwx
|
||||
user:2:rwx
|
||||
@@ -73,8 +73,8 @@ default:other::rwx
|
||||
|
||||
try 21 aces for access acl
|
||||
# file: largeacldir
|
||||
# owner: root
|
||||
# group: root
|
||||
# owner: 0
|
||||
# group: 0
|
||||
user::rwx
|
||||
user:1:rwx
|
||||
user:2:rwx
|
||||
@@ -119,8 +119,8 @@ default:other::rwx
|
||||
|
||||
try 21 aces for default acl
|
||||
# file: largeacldir
|
||||
# owner: root
|
||||
# group: root
|
||||
# owner: 0
|
||||
# group: 0
|
||||
user::rwx
|
||||
user:1:rwx
|
||||
user:2:rwx
|
||||
|
||||
Reference in New Issue
Block a user