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
committerAnand Avati <avati@redhat.com>2013-09-25 14:09:15 -0700
commit56769c4db9e25f10c35b7f9b6ccf24dc27b35f07 (patch)
tree2746758353de959cfabb11221e2325c07bca4a0e /xlators/system/posix-acl/src/posix-acl.h
parent22e982e31bc232f3d9597a41f49e715428e010ce (diff)
posix-acl: fixup extended ACL entries properlyv3.4.1rc1v3.4.1
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/6002 Tested-by: Gluster Build System <jenkins@build.gluster.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 6ac2c6a84..f85757106 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)