[ https://issues.apache.org/jira/browse/HDFS-5594?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chris Nauroth updated HDFS-5594: -------------------------------- Attachment: HDFS-5594.3.patch Here is patch version 3 with the following changes: # Previously, {{Acl}} contained the associated file/owner/group. This would have made the class cumbersome to use in the NameNode implementation, where we want to conserve memory by referencing the same {{Acl}} from multiple files. I've removed file/owner/group. # However, we still do need a way to get the association between an ACL and a file/owner/group. The getfacl CLI prints this information, and clients who do a recursive get also need a way to link each ACL in the result set back to its file. To support this, I've introduced a new {{AclStatus}} class that contains ACL, file, owner and group. # {{AclStatus}} is returned from {{listAclStatus}}, which was previously called {{getAcls}}. I did this rename for consistency with existing methods like {{listStatus}}. # It looks like the getfacl command traditionally prints the additional flags on the file too, like sticky bit. To support this, I've added sticky bit as a member of {{Acl}}. That's also helpful for the NameNode implementation, where we'll need a distinct {{Acl}} instance for different sticky bit settings even if the ACL entries are otherwise identical. > FileSystem API for ACLs. > ------------------------ > > Key: HDFS-5594 > URL: https://issues.apache.org/jira/browse/HDFS-5594 > Project: Hadoop HDFS > Issue Type: Sub-task > Components: hdfs-client > Affects Versions: HDFS ACLs (HDFS-4685) > Reporter: Chris Nauroth > Assignee: Chris Nauroth > Attachments: HDFS-5594.1.patch, HDFS-5594.2.patch, HDFS-5594.3.patch > > > Add new methods to {{FileSystem}} for manipulating ACLs. -- This message was sent by Atlassian JIRA (v6.1#6144)