[
http://issues.apache.org/jira/browse/HADOOP-57?page=comments#action_12368391 ]
Mahadev konar commented on HADOOP-57:
-------------------------------------
Here is a small patch that enables seeing the root file system. The
getDFSPath() function in DistributedFileSystem returns empty string in case of
an ls on /. The patch below modifies it to return /.
264d263
< path.append(DFSFile.DFS_FILE_SEPARATOR);
266a266
> path.append(DFSFile.DFS_FILE_SEPARATOR);
268,270d267
< if(i!=0){
< path.append(DFSFile.DFS_FILE_SEPARATOR);
< }
> hadoop dfs -ls / does not show root of file system
> --------------------------------------------------
>
> Key: HADOOP-57
> URL: http://issues.apache.org/jira/browse/HADOOP-57
> Project: Hadoop
> Type: Bug
> Components: dfs
> Versions: 0.1
> Reporter: Yoram Arnon
> Priority: Minor
>
> hadoop dfs -ls / does not show root of file system - it shows the user's home
> directory.
> It's thus impossible to learn the contents of the root file system via the
> shell.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira