Whamcloud - gitweb
b=11564
[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         $ ln -s d l
41         $ getfacl -dR . | grep file | sort
42         > # file: .
43         > # file: d
44         > # file: d/y
45         > # file: x
46         
47         $ ln -s l ll
48         $ getfacl -dLR ll | grep file | sort
49         > # file: ll
50         > # file: ll/y
51         
52         $ rm l ll x
53         $ rm -rf d
54         $ cd ..
55         $ rmdir test