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 A3F655C7D for ; Thu, 12 May 2011 21:08:27 +0000 (UTC) Received: (qmail 29450 invoked by uid 500); 12 May 2011 21:08:27 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 29411 invoked by uid 500); 12 May 2011 21:08:27 -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 29403 invoked by uid 99); 12 May 2011 21:08:27 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 May 2011 21:08:27 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 May 2011 21:08:26 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 81573870DA for ; Thu, 12 May 2011 21:07:47 +0000 (UTC) Date: Thu, 12 May 2011 21:07:47 +0000 (UTC) From: "Daryn Sharp (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: <356676304.8216.1305234467526.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <986320658.12552.1304109423193.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HDFS-1869) mkdirs should use the supplied permission for all of the created directories 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-1869?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13032679#comment-13032679 ] Daryn Sharp commented on HDFS-1869: ----------------------------------- Creating a multi-level dir with 0600 creates all dirs with 0600 -- will post test shortly. So it works as expected in the aspect of "you get the permissions you asked for". It's neglecting to implicitly add u+rx. In unix this is required since mkdir -p does a series of mkdir/chdir, so u+rx is required to do the chdir calls. In hdfs it's not necessary since it verifies permissions in the directory where the mkdir originates, and then creates all the dirs with no permission checking. Do want the u+rx behavior added too? If so, would it be ok to be done on a separate jira? > mkdirs should use the supplied permission for all of the created directories > ---------------------------------------------------------------------------- > > Key: HDFS-1869 > URL: https://issues.apache.org/jira/browse/HDFS-1869 > Project: Hadoop HDFS > Issue Type: Bug > Components: name-node > Affects Versions: 0.23.0 > Reporter: Daryn Sharp > Assignee: Daryn Sharp > Attachments: HDFS-1869.patch > > > Mkdirs only uses the supplied FsPermission for the last directory of the path. Paths 0..N-1 will all inherit the parent dir's permissions -even if- inheritPermission is false. This is a regression from somewhere around 0.20.9 and does not follow posix semantics. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira