4 # Test out acl/dacls which fit in shortform in the inode
6 #-----------------------------------------------------------------------
7 # Copyright (c) 2000, 2002 Silicon Graphics, Inc. All Rights Reserved.
8 #-----------------------------------------------------------------------
14 echo "QA output created by $seq"
18 status=1 # failure is the default!
19 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
21 # get standard environment, filters and checks
26 # real QA test starts here
30 [ -x /usr/bin/chacl ] || _notrun "chacl executable not found"
36 # set up fs for 1K inodes
38 _scratch_mkfs_xfs | _filter_mkfs >$seq.full 2>$tmp.mkfs
39 [ $? -eq 0 ] && source $tmp.mkfs
40 if [ "$isize" -lt 1024 ]; then
41 _scratch_mkfs_xfs -i size=1024 >>$here/$seq.full \
42 || _notrun "Cannot mkfs for this test using MKFS_OPTIONS specified"
44 _scratch_mount >>$here/$seq.full || _fail "mount failed"
45 xfs_info $SCRATCH_MNT >>$here/$seq.full
49 echo "=== Test out large ACLs ==="
53 # John Trostel reported probs with going from 20 to 21 aces
54 # 20 ace ACL = 20*12+4 = 244 bytes
55 # 21 ace ACL = 21*12+4 = 256 bytes - too big for shortform
56 # the 21 ace ACL can not be shortform
58 acl20=`_create_n_aces 20`
59 acl21=`_create_n_aces 21`
61 echo "try 20 aces for access acl"
62 chacl $acl20 largeacldir
63 getfacl largeacldir | _filter_aces
65 echo "try 20 aces for default acl"
66 chacl -d $acl20 largeacldir
67 getfacl largeacldir | _filter_aces
69 echo "try 21 aces for access acl"
70 chacl $acl21 largeacldir
71 getfacl largeacldir | _filter_aces
73 echo "try 21 aces for default acl"
74 chacl -d $acl21 largeacldir
75 getfacl largeacldir | _filter_aces