Whamcloud - gitweb
LU-1285 tests: fix tar breakage in 102d/102f/102j
[fs/lustre-release.git] / lustre / tests / acl / getfacl-noacl.test
1 Getfacl utility option parsing tests. This test can be run on a
2 filesystem with or without ACL support.
3
4         $ mkdir test
5         $ cd test
6         $ umask 027
7         $ touch x
8         $ getfacl --omit-header x
9         > user::rw-
10         > group::r--
11         > other::---
12         > 
13
14         $ getfacl --omit-header --access x
15         > user::rw-
16         > group::r--
17         > other::---
18         > 
19
20         $ getfacl --omit-header -d x
21         $ getfacl --omit-header -d .
22         $ getfacl --omit-header -d /
23         > getfacl: Removing leading '/' from absolute path names
24         
25         $ getfacl --skip-base x
26         $ getfacl --omit-header --all-effective x
27         > user::rw-
28         > group::r--
29         > other::---
30         > 
31         
32         $ getfacl --omit-header --no-effective x
33         > user::rw-
34         > group::r--
35         > other::---
36         > 
37         
38         $ mkdir d
39         $ touch d/y
40 various version of getfacl handle symlink differently
41 #       $ ln -s d l
42 The result of "getfacl -dR . | grep file | sort" is related with
43 the dentry item order in parent directory. Such order depends on
44 FS implementation. Fix with -P (--physical) option.
45 #       $ getfacl -dR . | grep file | sort
46         $ getfacl -dRP . | grep file | sort
47         > # file: .
48         > # file: d
49         > # file: d/y
50         > # file: x
51         $ ln -s d l
52         
53         $ ln -s l ll
54 #       $ getfacl -dLR ll | grep file | sort
55 #       (rhel4)
56 #       > # file: ll
57 #       > # file: ll/y
58 #       (rhel5)
59 #       > # file: l
60 #       > # file: l/y
61         
62         $ rm l ll x
63         $ rm -rf d
64         $ cd ..
65         $ rmdir test