Project

General

Profile

Export rbd diff between clone and parent » History » Version 2

Jessica Mack, 07/08/2015 12:42 AM

1 1 Jessica Mack
h1. Export rbd diff between clone and parent
2
3
h3. Summary
4
5 2 Jessica Mack
<pre>
6 1 Jessica Mack
                      s1
7
parent           O----O-------O
8 2 Jessica Mack
                        |   s2
9 1 Jessica Mack
clone                 O---O----O
10
                     (f)
11 2 Jessica Mack
</pre>
12 1 Jessica Mack
                    
13
Currently,  there is no way to export diff betwen s2 and s1, if I forget to create snap (f) when clone image created.
14
So, this blueprint will add the function to handle it.
15
16
h3. Owners
17
18
Li Wang (liwang@ubuntukyiln.com)
19
Yunchuan Wen(yunchuanwen@ubuntukylin.com)
20
Name
21
22
h3. Interested Parties
23
24
Name (Affiliation)
25
Name (Affiliation)
26
Name
27
28
h3. Current Status
29
30
when from_snap_id equal zero, librbd::diff_iterate would iterate parent image and gather the parent's diff information.
31
32
h3. Detailed Description
33
34
1. Add a flag to diff_iterate routine, let it to skip the work of gather parent's diff when the flag is set.
35
2. Modify rbd export-diff command, like: rbd export-diff foo --from-parent  file
36
37
h3. Work items
38
39
h4. Coding tasks
40
41
# Task 1
42
# Task 2
43
# Task 3
44
45
h4. Build / release tasks
46
47
# Task 1
48
# Task 2
49
# Task 3
50
51
h4. Documentation tasks
52
53
# Task 1
54
# Task 2
55
# Task 3
56
57
h4. Deprecation tasks
58
59
# Task 1
60
# Task 2
61
# Task 3