hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ravi Gummadi (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HDFS-1322) DistributedFileSystem.mkdirs(dir, dirPermission) doesn't set the permissions of created dir to dirPermission
Date Mon, 02 Aug 2010 09:06:18 GMT

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

Ravi Gummadi updated HDFS-1322:
-------------------------------

    Description: 
DistributedFileSystem.mkdirs(dir, dirPermission) calls DFSClient.mkdirs(dir, dirPermission)
to create directory and then set permissions to (dirPermission & ~umask). Is this the
intended behaviour ? I expect it to set permissions of dir to dirPermission instead of doing
an AND with ~umask ---- similar to what 'chmod -m mode' does.

The javadoc of DFSClient.mkdirs() says that the permissions of created dir will be set to
dirPermission, which is not done currently. This needs to be modified based on the actual
behaviour.

This is not an issue in RawLocalFileSystem.

  was:
DistributedFileSystem.mkdirs(dir, dirPermission) calls DFSClient.mkdirs(dir, dirPermission)
to create directory and then set permissions to (dirPermission & umask). Is this the intended
behaviour ? I expect it to set permissions of dir to dirPermission instead of doing an AND
with umask ---- similar to what 'chmod -m mode' does.

The javadoc of DFSClient.mkdirs() says that the permissions of created dir will be set to
dirPermission, which is not done currently. This needs to be modified based on the actual
behaviour.

This is not an issue in RawLocalFileSystem.


> DistributedFileSystem.mkdirs(dir, dirPermission) doesn't set the permissions of created
dir to dirPermission
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: HDFS-1322
>                 URL: https://issues.apache.org/jira/browse/HDFS-1322
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: Ravi Gummadi
>
> DistributedFileSystem.mkdirs(dir, dirPermission) calls DFSClient.mkdirs(dir, dirPermission)
to create directory and then set permissions to (dirPermission & ~umask). Is this the
intended behaviour ? I expect it to set permissions of dir to dirPermission instead of doing
an AND with ~umask ---- similar to what 'chmod -m mode' does.
> The javadoc of DFSClient.mkdirs() says that the permissions of created dir will be set
to dirPermission, which is not done currently. This needs to be modified based on the actual
behaviour.
> This is not an issue in RawLocalFileSystem.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message