[ 
https://issues.apache.org/jira/browse/HDFS-7087?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14138419#comment-14138419
 ] 

Andrew Wang commented on HDFS-7087:
-----------------------------------

Hi Yongjun, thanks for taking a look at this. AFAIK we don't need a "-a" 
option, since the HDFS shell doesn't hide paths starting with a "." like UNIXy 
shells. The core issue here is that right now, FSDirectory#resolvePath doesn't 
resolve "/.reserved" to anything, so we get FileNotFound when trying to do any 
operations on it. Reserved paths are all very special cased right now.

I think what we need to do is create two fake FileStatuses for when people list 
"/.reserved", and return those. It'd also be nice for {{getFileInfo}} on 
/.reserved directly to work. I think we *shouldn't* show .reserved when listing 
{{/}} though, since that could lead to bad things if someone ran e.g. a distcp 
on {{/}}.

> Ability to list /.reserved
> --------------------------
>
>                 Key: HDFS-7087
>                 URL: https://issues.apache.org/jira/browse/HDFS-7087
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>    Affects Versions: 2.6.0
>            Reporter: Andrew Wang
>
> We have two special paths within /.reserved now, /.reserved/.inodes and 
> /.reserved/raw. It seems like we should be able to list /.reserved to see 
> them.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to