[ 
https://issues.apache.org/jira/browse/HDFS-1869?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13032679#comment-13032679
 ] 

Daryn Sharp commented on HDFS-1869:
-----------------------------------

Creating a multi-level dir with 0600 creates all dirs with 0600 -- will post 
test shortly.  So it works as expected in the aspect of "you get the 
permissions you asked for".

It's neglecting to implicitly add u+rx.  In unix this is required since mkdir 
-p does a series of mkdir/chdir, so u+rx is required to do the chdir calls.  In 
hdfs it's not necessary since it verifies permissions in the directory where 
the mkdir originates, and then creates all the dirs with no permission 
checking.  Do want the u+rx behavior added too?  If so, would it be ok to be 
done on a separate jira?

> mkdirs should use the supplied permission for all of the created directories
> ----------------------------------------------------------------------------
>
>                 Key: HDFS-1869
>                 URL: https://issues.apache.org/jira/browse/HDFS-1869
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: name-node
>    Affects Versions: 0.23.0
>            Reporter: Daryn Sharp
>            Assignee: Daryn Sharp
>         Attachments: HDFS-1869.patch
>
>
> Mkdirs only uses the supplied FsPermission for the last directory of the 
> path.  Paths 0..N-1 will all inherit the parent dir's permissions -even if- 
> inheritPermission is false.  This is a regression from somewhere around 
> 0.20.9 and does not follow posix semantics.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to