hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Suresh Srinivas (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HADOOP-6710) Symbolic umask for file creation is not consistent with linux
Date Thu, 15 Apr 2010 23:58:49 GMT

    [ 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

        

Mime
View raw message