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

Jing Zhao commented on HDFS-4131:
---------------------------------

The diff printout from the new testcase TestSnapshotDiffReport looks like:
{noformat}
Diffence between snapshot s0 and snapshot s2 under directory /TestSnapshot/sub1:
M       /TestSnapshot/sub1
+       /TestSnapshot/sub1/file15
-       /TestSnapshot/sub1/file12
M       /TestSnapshot/sub1/file11
M       /TestSnapshot/sub1/file13

Diffence between snapshot s0 and snapshot s5 under directory /TestSnapshot/sub1:
M       /TestSnapshot/sub1
+       /TestSnapshot/sub1/file15
+       /TestSnapshot/sub1/subsub1
-       /TestSnapshot/sub1/file12
M       /TestSnapshot/sub1/file10
M       /TestSnapshot/sub1/file11
M       /TestSnapshot/sub1/file13

Diffence between snapshot s0 and current directory under directory 
/TestSnapshot/sub1:
M       /TestSnapshot/sub1
+       /TestSnapshot/sub1/file15
+       /TestSnapshot/sub1/subsub1
-       /TestSnapshot/sub1/file12
M       /TestSnapshot/sub1/file10
M       /TestSnapshot/sub1/file11
M       /TestSnapshot/sub1/file13
{noformat}
where M/+/-/R denote modified/created/deleted/renamed respectively (rename is 
not supported in the diff computation currently).
                
> Add a tool to print the diff between two snapshots and diff of a snapshot 
> from the current tree
> -----------------------------------------------------------------------------------------------
>
>                 Key: HDFS-4131
>                 URL: https://issues.apache.org/jira/browse/HDFS-4131
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: datanode, namenode
>    Affects Versions: Snapshot (HDFS-2802)
>            Reporter: Suresh Srinivas
>            Assignee: Jing Zhao
>         Attachments: HDFS-4131.001.patch, HDFS-4131.002.patch, 
> HDFS-4131.003.patch
>
>
> This jira tracks tool to print diff between an two snapshots at a given path. 
> The tool will also print the difference between the current directory and the 
> given 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