1 This is a regression test for bugs in the nfsacl protocol extension.
2 The test should be run on an NFS export mount with ACL support.
4 Create a test directory and file.
8 $ echo blah > test/sub/blah
10 $ cp -rp test/sub test/sub2
11 $ find test/sub2 | sort | xargs ls -dl | awk '{print $1,$8}'
12 > drwxr-xr-x test/sub2
13 > -rw-r--r-- test/sub2/blah
17 $ setfacl -m u:daemon:rwx test/sub
18 $ setfacl -dm u:daemon:rwx test/sub
19 $ getfattr -m- test/sub
21 > system.posix_acl_access
22 > system.posix_acl_default
25 $ cp -rp test/sub test/sub2
26 $ find test/sub2 | sort | xargs ls -dl | awk '{print $1,$8}'
27 > drwxrwxr-x+ test/sub2
28 > -rw-r--r-- test/sub2/blah
32 $ setfacl -m u:daemon:rw test/sub/blah
33 $ cp -rp test/sub test/sub2
34 $ find test/sub2 | sort | xargs ls -dl | awk '{print $1,$8}'
35 > drwxrwxr-x+ test/sub2
36 > -rw-rw-r--+ test/sub2/blah