Whamcloud - gitweb
LU-7715 out: fix err_serious in out_handle
[fs/lustre-release.git] / lustre / tests / rmtacl / 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         $ lfs lgetfacl --omit-header x
9         > user::rw-
10         > group::r--
11         > other::---
12         > 
13
14         $ lfs lgetfacl --omit-header --access x
15         > user::rw-
16         > group::r--
17         > other::---
18         > 
19
20         $ lfs lgetfacl --omit-header -d x
21         $ lfs lgetfacl --omit-header -d .
22         $ lfs lgetfacl --omit-header -d /
23         > getfacl: Removing leading '/' from absolute path names
24         
25         $ lfs lgetfacl --skip-base x
26         $ lfs lgetfacl --omit-header --all-effective x
27         > user::rw-
28         > group::r--
29         > other::---
30         > 
31         
32         $ lfs lgetfacl --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 "lfs lgetfacl -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 #       $ lfs lgetfacl -dR . | grep file | sort
45         $ lfs lgetfacl -dRP . | grep file | sort
46         > # file: .
47         > # file: d
48         > # file: d/y
49         > # file: x
50         
51         $ ln -s l ll
52 #       $ lfs lgetfacl -dLR ll | grep file | sort
53 #       (rhel4)
54 #       > # file: ll
55 #       > # file: ll/y
56 #       (rhel5)
57 #       > # file: l
58 #       > # file: l/y
59         
60         $ rm l ll x
61         $ rm -rf d
62         $ cd ..
63         $ rmdir test