Return-Path: X-Original-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 15BC6D42E for ; Wed, 26 Sep 2012 00:48:10 +0000 (UTC) Received: (qmail 98250 invoked by uid 500); 26 Sep 2012 00:48:09 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 98214 invoked by uid 500); 26 Sep 2012 00:48:09 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 98178 invoked by uid 99); 26 Sep 2012 00:48:09 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Sep 2012 00:48:09 +0000 Date: Wed, 26 Sep 2012 11:48:09 +1100 (NCT) From: "Colin Patrick McCabe (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: <1541700655.126175.1348620489630.JavaMail.jiratomcat@arcas> Subject: [jira] [Updated] (HDFS-1322) DistributedFileSystem.mkdirs(dir, dirPermission) doesn't set the permissions of created dir to dirPermission MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HDFS-1322?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Colin Patrick McCabe updated HDFS-1322: --------------------------------------- Description: The javadoc of DFSClient.mkdirs() says that the permissions of created dir will be set to dirPermission, which is not done currently. This should talk about umask. (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 > Assignee: Colin Patrick McCabe > Labels: newbie > Attachments: HDFS-1322.patch > > > The javadoc of DFSClient.mkdirs() says that the permissions of created dir will be set to dirPermission, which is not done currently. This should talk about umask. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira