Whamcloud - gitweb
- make HEAD from b_post_cmd3
[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 The result of "getfacl -dR . | grep file | sort" is related with
42 the dentry item order in parent directory. Such order depends on
43 FS implementation. Fix with -P (--physical) option.
44 #       $ getfacl -dR . | grep file | sort
45         $ getfacl -dRP . | grep file | sort
46         > # file: .
47         > # file: d
48         > # file: d/y
49         > # file: x
50         
51         $ ln -s l ll
52         $ getfacl -dLR ll | grep file | sort
53         > # file: ll
54         > # file: ll/y
55         
56         $ rm l ll x
57         $ rm -rf d
58         $ cd ..
59         $ rmdir test