diff options
author | 2018-03-01 14:38:11 +0800 | |
---|---|---|
committer | 2018-03-01 14:38:11 +0800 | |
commit | 7da45d65be36d36b880cc55c5036e96c24b53f00 (patch) | |
tree | d4f944eb4f8f8de50a9a7584ffa408dc3a3185b2 /src/ceph/qa/workunits/fs/misc/acl.sh | |
parent | 691462d09d0987b47e112d6ee8740375df3c51b2 (diff) |
remove ceph code
This patch removes initial ceph code, due to license issue.
Change-Id: I092d44f601cdf34aed92300fe13214925563081c
Signed-off-by: Qiaowei Ren <qiaowei.ren@intel.com>
Diffstat (limited to 'src/ceph/qa/workunits/fs/misc/acl.sh')
-rwxr-xr-x | src/ceph/qa/workunits/fs/misc/acl.sh | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/src/ceph/qa/workunits/fs/misc/acl.sh b/src/ceph/qa/workunits/fs/misc/acl.sh deleted file mode 100755 index 198b056..0000000 --- a/src/ceph/qa/workunits/fs/misc/acl.sh +++ /dev/null @@ -1,50 +0,0 @@ -#!/bin/sh -x - -set -e -mkdir -p testdir -cd testdir - -set +e -setfacl -d -m u:nobody:rw . -if test $? != 0; then - echo "Filesystem does not support ACL" - exit 0 -fi - -expect_failure() { - if "$@"; then return 1; else return 0; fi -} - -set -e -c=0 -while [ $c -lt 100 ] -do - c=`expr $c + 1` - # inherited ACL from parent directory's default ACL - mkdir d1 - c1=`getfacl d1 | grep -c "nobody:rw"` - echo 3 | sudo tee /proc/sys/vm/drop_caches > /dev/null - c2=`getfacl d1 | grep -c "nobody:rw"` - rmdir d1 - if [ $c1 -ne 2 ] || [ $c2 -ne 2 ] - then - echo "ERROR: incorrect ACLs" - exit 1 - fi -done - -mkdir d1 - -# The ACL xattr only contains ACL header. ACL should be removed -# in this case. -setfattr -n system.posix_acl_access -v 0x02000000 d1 -setfattr -n system.posix_acl_default -v 0x02000000 . - -expect_failure getfattr -n system.posix_acl_access d1 -expect_failure getfattr -n system.posix_acl_default . - - -rmdir d1 -cd .. -rmdir testdir -echo OK |