You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Suresh Srinivas (JIRA)" <ji...@apache.org> on 2010/04/16 01:58:49 UTC

[jira] Commented: (HADOOP-6710) Symbolic umask for file creation is not consistent with linux

    [ https://issues.apache.org/jira/browse/HADOOP-6710?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12857600#action_12857600 ] 

Suresh Srinivas commented on HADOOP-6710:
-----------------------------------------

Snippet from the posix specification http://www.opengroup.org/onlinepubs/000095399/utilities/umask.html:
For a symbolic_mode value, the new value of the file mode creation mask shall be the logical complement of the file permission bits portion of the file mode specified by the symbolic_mode  string.

In a symbolic_mode value, the permissions op characters '+' and '-' shall be interpreted relative to the current file mode creation mask; '+' shall cause the bits for the indicated permissions to be cleared in the mask; '-' shall cause the bits for the indicated permissions to be set in the mask.

The interpretation of mode values that specify file mode bits other than the file permission bits is unspecified.

In the octal integer form of mode, the specified bits are set in the file mode creation mask.

The file mode creation mask shall be set to the resulting numeric value.

> Symbolic umask for file creation is not consistent with linux
> -------------------------------------------------------------
>
>                 Key: HADOOP-6710
>                 URL: https://issues.apache.org/jira/browse/HADOOP-6710
>             Project: Hadoop Common
>          Issue Type: Bug
>    Affects Versions: 0.21.0, 0.22.0
>            Reporter: Suresh Srinivas
>
> Currently both octal and symbolic umask are used to reset the file creation mode bits. This is not consistent with the behavior defined in posix. Making it consistent would avoid confusion to the HDFS users.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira