hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivan Mitic (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-9483) winutils support fo readlink command
Date Thu, 18 Apr 2013 04:23:16 GMT

    [ 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

Mime
View raw message