[ https://issues.apache.org/jira/browse/HADOOP-6962?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13067763#comment-13067763 ]
Daryn Sharp commented on HADOOP-6962: ------------------------------------- I'm not sure I understand. The static method created the parent dirs with default perms -- which was really translating to inheriting the parent dir's perms prior to the linked HDFS-1869 -- and then changing the last dir to have the requested perms. After HDFS-1869, the parent dirs won't inherit and thus may unexpectedly be more permissive than the final directory. This change brings the static method in line with the non-static method which will create all the dirs with the requested perms (with implicit u+wx for parents). It also eliminates a RPC. > FileSystem.mkdirs(Path, FSPermission) should use the permission for all of > the created directories > -------------------------------------------------------------------------------------------------- > > Key: HADOOP-6962 > URL: https://issues.apache.org/jira/browse/HADOOP-6962 > Project: Hadoop Common > Issue Type: Bug > Components: fs > Reporter: Owen O'Malley > Assignee: Daryn Sharp > Attachments: HADOOP-6962.patch > > > Currently, FileSystem.mkdirs only applies the permissions to the last level > if it was created. It should be applied to *all* levels that are created. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira