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