summaryrefslogtreecommitdiffstats
path: root/xlators/system/posix-acl/src/posix-acl.h
diff options
context:
space:
mode:
authorAnand Avati <avati@redhat.com>2013-09-15 15:00:06 -0700
committerVijay Bellur <vbellur@redhat.com>2013-09-25 00:31:04 -0700
commit8737b4697ad555a1e49ef87b5d439bfb74d8b5b5 (patch)
tree37fa44c3dc97328974eab469f1a0c648a38b2655 /xlators/system/posix-acl/src/posix-acl.h
parent83937d1666f1f5e395afc7b2df477e9aad4c2278 (diff)
posix-acl: fixup extended ACL entries properly
Typically when updating cached ACL from backend, we get both iatt and ACL xattrs (like lookup, readdirplus etc.) However in calls like setattr(), the mode would have updated but we receive only iatt and not the ACL xattrs. In such case we need to "spread" the effects of the changed mode properly into the cached ACL xattr ourselves. Change-Id: I23a7bc9c14722ff6848e175ed4bbe863a21ce2c9 BUG: 998967 Signed-off-by: Anand Avati <avati@redhat.com> Reviewed-on: http://review.gluster.org/5979 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Amar Tumballi <amarts@redhat.com>
Diffstat (limited to 'xlators/system/posix-acl/src/posix-acl.h')
-rw-r--r--xlators/system/posix-acl/src/posix-acl.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/xlators/system/posix-acl/src/posix-acl.h b/xlators/system/posix-acl/src/posix-acl.h
index 6ac2c6a..f857571 100644
--- a/xlators/system/posix-acl/src/posix-acl.h
+++ b/xlators/system/posix-acl/src/posix-acl.h
@@ -17,6 +17,7 @@
#include "common-utils.h"
#include "byte-order.h"
+#define POSIX_ACL_MINIMAL_ACE_COUNT 3
#define POSIX_ACL_READ (0x04)
#define POSIX_ACL_WRITE (0x02)