mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
xfstests: getfacl -n unsupported in older acl package
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. Signed-off-by: Boris Ranto <branto@redhat.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
committed by
Christoph Hellwig
parent
01c93ec817
commit
084dc325db
@@ -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 -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
|
||||
|
||||
#-------------------------------------------------------
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user