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

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

Konstantin, missed a few comments:
bq. Same with ls -r. I see Aaron proposes to skip .snapshot, which makes sense. 
Should we have something like ls -rs to list snapshotable directories in the 
tree?
.snapshot is skipped when regular path is given. Let me go over some examples:
# <path> related operations that does not include .snapshot only operates on 
non snapshot related files.
#* ls -r <path> - will only list non snapshot files
#* rm -r <path> - as already stated in the document, if there are snapshots 
under that path, then deletion is not allowed, until all the snapshots are 
deleted.
# <path>/.snapshot applies to all the snapshots
#* ls <path>/.snapshot - lists all the snapshots under that path
#* ls -r <path>/.snapshot - I was thinking this would be same as ls 
<path>/.snapshot. I was thinking recursively listing all the snapshots could be 
expensive and may 
not be what a user wants. I want to get your thoughts on that.
#* rm <path>/.snapshot or rm -r <path>/.snapshot - removes all the snapshots. I 
want to get your thoughts on this as well.
# <path>/.snapshot/snapname
#* ls <path>/.snapshot/snapname - list files in the snapshot
#* ls -r <path>/.snapshot/snapname - recursively lists all the files in the 
snapshot name
#* rm <path>/.snapshot/snapname or rm -r <path>/.snapshot/snapname - deletes 
the snapshot
#* rm <path>/.snapshot/snapname/file - fails. snapshot is read-only.

I will update the design document with these details.

                
> 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