Skip to content

Commit b73043a

Browse files
committed
HDFS-6463. Clarify behavior of AclStorage#createFsPermissionForExtendedAcl in comments. Contributed by Chris Nauroth.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1598437 13f79535-47bb-0310-9956-ffa450edef68
1 parent ed51194 commit b73043a

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,9 @@ Release 2.5.0 - UNRELEASED
454454
HDFS-6447. balancer should timestamp the completion message.
455455
(Juan Yu via wang).
456456

457+
HDFS-6463. Clarify behavior of AclStorage#createFsPermissionForExtendedAcl
458+
in comments. (cnauroth)
459+
457460
OPTIMIZATIONS
458461

459462
HDFS-6214. Webhdfs has poor throughput for files >2GB (daryn)

hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/AclStorage.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,10 @@ private static AclFeature createAclFeature(List<AclEntry> accessEntries,
338338
* ACL, based on its access ACL entries. For a correctly sorted ACL, the
339339
* first entry is the owner and the last 2 entries are the mask and other
340340
* entries respectively. Also preserve sticky bit and toggle ACL bit on.
341+
* Note that this method intentionally copies the permissions of the mask
342+
* entry into the FsPermission group permissions. This is consistent with the
343+
* POSIX ACLs model, which presents the mask as the permissions of the group
344+
* class.
341345
*
342346
* @param accessEntries List<AclEntry> access ACL entries
343347
* @param existingPerm FsPermission existing permissions

0 commit comments

Comments
 (0)