Sage Weil
f67f62abab
rbd: prevent import-diff if start snapshot is not already present
...
Signed-off-by: Sage Weil <sage@inktank.com>
2013-03-31 23:32:41 -07:00
Sage Weil
9946c69cd1
rbd: fail import-diff if end snap already exists
...
This will prevent a user from inadvertantly reapplying a diff twice.
Signed-off-by: Sage Weil <sage@inktank.com>
2013-03-31 23:32:41 -07:00
Sage Weil
f0c9a200ec
librbd: diff_iterate fromsnapname after the end snap is also invalid
...
Signed-off-by: Sage Weil <sage@inktank.com>
2013-03-31 23:32:41 -07:00
Sage Weil
e7167433ae
rbd: implement 'export-diff' and 'import-diff' commands
...
Export a diff of an image from a previous snapshot to a file (or stdout).
Import a diff and apply it to an image, and then create the ending
snapshot.
Signed-off-by: Sage Weil <sage@inktank.com>
2013-03-31 23:32:40 -07:00