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 323D410479 for ; Tue, 30 Apr 2013 19:02:17 +0000 (UTC) Received: (qmail 67796 invoked by uid 500); 30 Apr 2013 19:02:16 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 67717 invoked by uid 500); 30 Apr 2013 19:02:16 -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 67708 invoked by uid 99); 30 Apr 2013 19:02:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Apr 2013 19:02:16 +0000 Date: Tue, 30 Apr 2013 19:02:16 +0000 (UTC) From: "Brandon Li (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-4771) Provide a way to set symlink attributes 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-4771?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13645847#comment-13645847 ] Brandon Li commented on HDFS-4771: ---------------------------------- {quote}...but I recommend we follow POSIX conventions.{quote} I think so too. {quote}Btw HDFS symlinks don't currently support permissions on the links themselves (see HDFS-948).{quote} Two major problems I found with current symlink implementation. 1. HDFS assumes the link is inside its own namespace. This is a problem when HDFS is integrated into client's file system namespace. 2. Suppose the linked target is inside HFDS, HDFS doesn't really check whether the target saved in the link file is a valid path. Even the target was valid, it could become invalid as the namespace changes. For example, create a symlink /user/brandon/iamlink.lnk and it has the content(target) as "/invalid/path". The file /user/brandon/iamlink.lnk can't be deleted since HDFS can't resolve it. Let me update the JIRA title accordingly. > Provide a way to set symlink attributes > --------------------------------------- > > Key: HDFS-4771 > URL: https://issues.apache.org/jira/browse/HDFS-4771 > Project: Hadoop HDFS > Issue Type: Bug > Components: namenode > Affects Versions: 3.0.0 > Reporter: Brandon Li > > Currently HDFS always resolves symlink when setting certain file attributes, such as setPermission and setTime. And thus the client can't set some file attributes of the symlink itself. -- 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