summaryrefslogtreecommitdiff
path: root/test/attr.test
diff options
context:
space:
mode:
authorNathan Scott <nathans@sgi.com>2002-09-07 00:20:21 +0000
committerNathan Scott <nathans@sgi.com>2002-09-07 00:20:21 +0000
commit59ca624703ab356d5dd71644c598d24d98a55edf (patch)
tree171262ac549814e1adbf6766a31e8ac9ab4aa9d3 /test/attr.test
parentbcafa5867c7359254b4b316658da9eec6c59aa45 (diff)
downloadattr-59ca624703ab356d5dd71644c598d24d98a55edf.tar.gz
Updates from AndreasG.
Diffstat (limited to 'test/attr.test')
-rw-r--r--test/attr.test20
1 files changed, 12 insertions, 8 deletions
diff --git a/test/attr.test b/test/attr.test
index fae2e20..91c6874 100644
--- a/test/attr.test
+++ b/test/attr.test
@@ -15,6 +15,11 @@ $ setfattr -n user -v value f
setfattr: f: Operation not supported
$ setfattr -n user. -v value f
setfattr: f: Invalid argument
+$ setfattr -n user.name f
+$ getfattr -d f
+# file: f
+user.name
+
$ setfattr -n user.n -v value f
$ rm f
! === size checks, for an ext2/ext3 file system with a block size of 1K
@@ -182,19 +187,18 @@ $ rm f g h
$ touch f
$ ln -s f l
$ setfattr -n user.filename -v f l
+$ setfattr -n user.filename -v l l
$ setfattr -h -n user.filename -v l l
+setfattr: l: Operation not permitted
$ getfattr -d f l
# file: f
-user.filename="f"
-
-# file: l
-user.filename="f"
-
-$ getfattr -h -d f l
-# file: f
-user.filename="f"
+user.filename="l"
# file: l
user.filename="l"
+! Some POSIX ACL tests...
+$ setfattr -n system.posix_acl_access -v 0sAgAAAAEABgD/////AgAGAAEAAAAEAAQA/////xAABgD/////IAAEAP////8= f
+$ setfattr -n system.posix_acl_accessFOO -v 0sAgAAAAEABgD/////AgAGAAEAAAAEAAQA/////xAABgD/////IAAEAP////8= f
+setfattr: f: Invalid argument
$ rm f l