hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xiao Chen (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-10650) DFSClient#mkdirs and DFSClient#primitiveMkdir should use default directory permission
Date Tue, 27 Sep 2016 22:51:20 GMT

     [ https://issues.apache.org/jira/browse/HDFS-10650?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Xiao Chen updated HDFS-10650:
-----------------------------
    Release Note: If the caller does not supply a permission, DFSClient#mkdirs and DFSClient#primitiveMkdir
will create a new directory with the default directory permission 00777 now, instead of 00666.
 (was: If the caller does not supply a permission, DFSClient#mkdirs and DFSClient#primitiveMkdir
will create a new directory with the default directory permission 00777 instead of 00666.)

> DFSClient#mkdirs and DFSClient#primitiveMkdir should use default directory permission
> -------------------------------------------------------------------------------------
>
>                 Key: HDFS-10650
>                 URL: https://issues.apache.org/jira/browse/HDFS-10650
>             Project: Hadoop HDFS
>          Issue Type: Bug
>    Affects Versions: 2.6.0
>            Reporter: John Zhuge
>            Assignee: John Zhuge
>            Priority: Minor
>             Fix For: 3.0.0-alpha2
>
>         Attachments: HDFS-10650.001.patch, HDFS-10650.002.patch
>
>
> These 2 DFSClient methods should use default directory permission to create a directory.
> {code:java}
>   public boolean mkdirs(String src, FsPermission permission,
>       boolean createParent) throws IOException {
>     if (permission == null) {
>       permission = FsPermission.getDefault();
>     }
> {code}
> {code:java}
>   public boolean primitiveMkdir(String src, FsPermission absPermission, 
>     boolean createParent)
>     throws IOException {
>     checkOpen();
>     if (absPermission == null) {
>       absPermission = 
>         FsPermission.getDefault().applyUMask(dfsClientConf.uMask);
>     } 
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org


Mime
View raw message