[ https://issues.apache.org/jira/browse/HDFS-7484?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jing Zhao updated HDFS-7484: ---------------------------- Attachment: HDFS-7484.004.patch Continue the work of Haohui. Based on the 003 patch, add a new method {{INodesInPath#getExistingINodes}} to return all the existing INodes of a given INodesInPath instance (i.e., trimming all the null elements), and use this method to simplify the mkdir logic. > Simplify the workflow of calculating permission in mkdirs() > ----------------------------------------------------------- > > Key: HDFS-7484 > URL: https://issues.apache.org/jira/browse/HDFS-7484 > Project: Hadoop HDFS > Issue Type: Improvement > Reporter: Haohui Mai > Assignee: Jing Zhao > Attachments: HDFS-7484.000.patch, HDFS-7484.001.patch, > HDFS-7484.002.patch, HDFS-7484.003.patch, HDFS-7484.004.patch > > > {{FSDirMkdirsOp#mkdirsRecursively()}} currently calculates the permissions > based on whether {{inheritPermission}} is true. This jira proposes to > simplify the workflow and make it explicit for the caller. -- This message was sent by Atlassian JIRA (v6.3.4#6332)