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

Suresh Srinivas commented on HDFS-2802:
---------------------------------------

Konstantin, thanks for the comments.

bq. I would make the snapshot name optional in -createSnapshot (choosing names 
is such a hastle). Should be easy since you already have internal unique ids.
This is a good idea. Typically the snapshot names are date+timestamp. Should we 
choose that as the snapshot name when no name is provided?

bq. Suresh, do I understand correctly that files under .snapshot are read-only, 
so rm -r will not remove it. You need to clarify how regular rm -r works in the 
design.
Yes all the contents below <path>/.snapshot/snapshotname is read-only. rm works 
only at the level <path>/.snapshot/snapshotname and not below it. I will add 
more details to the design doc.
                
> Support for RW/RO snapshots in HDFS
> -----------------------------------
>
>                 Key: HDFS-2802
>                 URL: https://issues.apache.org/jira/browse/HDFS-2802
>             Project: Hadoop HDFS
>          Issue Type: New Feature
>          Components: data-node, name-node
>            Reporter: Hari Mankude
>            Assignee: Hari Mankude
>         Attachments: HDFS-2802.20121101.patch, 
> HDFS-2802-meeting-minutes-121101.txt, HDFSSnapshotsDesign.pdf, snap.patch, 
> snapshot-design.pdf, snapshot-design.tex, snapshot-one-pager.pdf, 
> Snapshots20121018.pdf, Snapshots20121030.pdf
>
>
> Snapshots are point in time images of parts of the filesystem or the entire 
> filesystem. Snapshots can be a read-only or a read-write point in time copy 
> of the filesystem. There are several use cases for snapshots in HDFS. I will 
> post a detailed write-up soon with with more information.

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