From 3410ed90c1bb3490a91ab1d8b1dc824244825b6b Mon Sep 17 00:00:00 2001 From: fanyong Date: Mon, 27 Nov 2006 05:40:09 +0000 Subject: [PATCH] Fix test script for local acl operation. --- lustre/tests/acl/getfacl-noacl.test | 6 +++++- lustre/tests/acl/permissions.test | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/lustre/tests/acl/getfacl-noacl.test b/lustre/tests/acl/getfacl-noacl.test index 6d730c4..4082a3b 100644 --- a/lustre/tests/acl/getfacl-noacl.test +++ b/lustre/tests/acl/getfacl-noacl.test @@ -38,7 +38,11 @@ filesystem with or without ACL support. $ mkdir d $ touch d/y $ ln -s d l - $ getfacl -dR . | grep file | sort +The result of "getfacl -dR . | grep file | sort" is related with +the dentry item order in parent directory. Such order depends on +FS implementation. Fix with -P (--physical) option. +# $ getfacl -dR . | grep file | sort + $ getfacl -dRP . | grep file | sort > # file: . > # file: d > # file: d/y diff --git a/lustre/tests/acl/permissions.test b/lustre/tests/acl/permissions.test index bcf947c..04accac 100644 --- a/lustre/tests/acl/permissions.test +++ b/lustre/tests/acl/permissions.test @@ -202,8 +202,11 @@ only need to verify that ACL permissions make a difference. > e/h following 2 lines seems not valid, which also failed on ext3 in FC3 enviroment, although it pass in FC2. commented out by CFS (agreed with HP) +Replaced "echo" with "touch" can resolve such problem. # $ echo i > e/i # > e/i: Permission denied + $ touch e/i + > touch: cannot touch `e/i': Permission denied $ su $ setfacl -m u:bin:rwx e -- 1.8.3.1