From 8737b4697ad555a1e49ef87b5d439bfb74d8b5b5 Mon Sep 17 00:00:00 2001 From: Anand Avati Date: Sun, 15 Sep 2013 15:00:06 -0700 Subject: 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 Reviewed-on: http://review.gluster.org/5979 Tested-by: Gluster Build System Reviewed-by: Amar Tumballi --- xlators/system/posix-acl/src/posix-acl.h | 1 + 1 file changed, 1 insertion(+) (limited to 'xlators/system/posix-acl/src/posix-acl.h') 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) -- cgit