Re: flatten rbd export / export-diff ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 06/04/2013 11:04 AM, Stefan Priebe wrote:
Am 04.06.2013 17:23, schrieb Sage Weil:
On Tue, 4 Jun 2013, Stefan Priebe - Profihost AG wrote:
Hi,

is there a way to flatten the rbd export-diff to a "new" image FILE. Or
do i always have to:

rbd import "OLD BASE IMAGE"
rbd import-diff diff1
rbd import-diff diff1-2
rbd import-diff diff2-3
rbd import-diff diff3-4
rbd import-diff diff4-5
...
and so on?

I would like to apply the diffs on local disk and then import the new
file.

Not currently.  The format is very simple, though; it should be pretty
simple to implement a subcommand in the rbd tool to do it.

Oh my C skills are more than limited ;-( i could do it in perl ;-) Is
there a format description?

Yeah, it should be pretty easy to decode in any language:

http://ceph.com/docs/master/dev/rbd-diff/

You could also use the python or C bindings for librbd's diff_iterate to
create a different format if you wanted.

Josh
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux