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

Jing Zhao commented on HDFS-4666:
---------------------------------

I think 1 may be better than 2. For 2, a problem may be that after we upgrade 
the version, when we find a file/directory named ".snapshot", the current 
implementation will treat the file/dir's path as a read-only path, and disallow 
further rename/deletion operations on the file/dir. To fix this issue can add 
more complexity to the current INodeDirectory#getExistingPathINodes method.

Besides, I think we can also do this in a separate jira and just throw an 
exception in this jira.
                
> Disallow users to create file/dir named ".snapshot"
> ---------------------------------------------------
>
>                 Key: HDFS-4666
>                 URL: https://issues.apache.org/jira/browse/HDFS-4666
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: datanode, namenode
>            Reporter: Jing Zhao
>            Assignee: Tsz Wo (Nicholas), SZE
>         Attachments: h4666_20130413b.patch, h4666_20130413.patch
>
>
> Currently ".snapshot" is reserved by snapshots as a special tag to specify 
> the path leading to snapshot copies. We should disallow users to create 
> file/dir using name ".snapshot".

--
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

Reply via email to