Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-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 2B54DFC29 for ; Thu, 18 Apr 2013 04:23:20 +0000 (UTC) Received: (qmail 79287 invoked by uid 500); 18 Apr 2013 04:23:19 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 79007 invoked by uid 500); 18 Apr 2013 04:23:18 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 78921 invoked by uid 99); 18 Apr 2013 04:23:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Apr 2013 04:23:16 +0000 Date: Thu, 18 Apr 2013 04:23:16 +0000 (UTC) From: "Ivan Mitic (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HADOOP-9483) winutils support fo readlink command 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/HADOOP-9483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13634816#comment-13634816 ] Ivan Mitic commented on HADOOP-9483: ------------------------------------ bq. First, regarding DeviceIoControl vs. GetFinalPathNameByHandle, I have not been able to determine from reading documentation if the "final" path name would also get canonicalized/made absolute. The behavior of Unix readlink is that it does not make the returned value absolute/canonicalized, so a relative path in a symlink would be preserved as is. Good question. I'm also not sure, you'll have to test this out. bq. Second, when we say that we should not support junction points, does that mean that winutils readlink should fail fast and return an error if it's being called on a junction point? Thanks, failing early would be nice to have functionality (although not strictly needed imo). There is an existing winutils API that checks whether the given path is a junction point, so this should be easy to add. > winutils support fo readlink command > ------------------------------------ > > Key: HADOOP-9483 > URL: https://issues.apache.org/jira/browse/HADOOP-9483 > Project: Hadoop Common > Issue Type: Improvement > Components: util > Affects Versions: 3.0.0 > Reporter: Chris Nauroth > > The current codebase relies on the Unix readlink command to determine the target of a symlink on the local file system. winutils currently does not support this functionality on Windows. Adding the command to winutils will prevent the need to use GnuWin32 or Cygwin for readlink support. -- 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