From 56769c4db9e25f10c35b7f9b6ccf24dc27b35f07 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/6002 Tested-by: Gluster Build System --- 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 6ac2c6a8433..f8575710634 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