Project

General

Profile

Export rbd diff between clone and parent

Summary

                      s1
parent           O----O-------O
                        |   s2
clone                 O---O----O
                     (f)

Currently, there is no way to export diff betwen s2 and s1, if I forget to create snap (f) when clone image created.
So, this blueprint will add the function to handle it.

Owners

Li Wang ()
Yunchuan Wen()
Name

Interested Parties

Name (Affiliation)
Name (Affiliation)
Name

Current Status

when from_snap_id equal zero, librbd::diff_iterate would iterate parent image and gather the parent's diff information.

Detailed Description

1. Add a flag to diff_iterate routine, let it to skip the work of gather parent's diff when the flag is set.
2. Modify rbd export-diff command, like: rbd export-diff foo --from-parent file

Work items

Coding tasks

  1. Task 1
  2. Task 2
  3. Task 3

Build / release tasks

  1. Task 1
  2. Task 2
  3. Task 3

Documentation tasks

  1. Task 1
  2. Task 2
  3. Task 3

Deprecation tasks

  1. Task 1
  2. Task 2
  3. Task 3