All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] Can I only commit from active image to corresponding range of its backing file by qemu cmd?
@ 2018-09-13  3:33 lampahome
  2018-09-13 13:22 ` Max Reitz
  0 siblings, 1 reply; 10+ messages in thread
From: lampahome @ 2018-09-13  3:33 UTC (permalink / raw)
  To: QEMU Developers

I split data to 3 chunks and save it in 3 independent backing files like
below:
img.000 <-- img.001 <-- img.002
img.000 is the backing file of img.001 and 001 is the backing file of 002.
img.000 saves the 1st chunk of data and img.001 saves the 2nd chunk of
data, and img.002 saves the 3rd chunk of data.

Now I have img.003 stores cow data of 1st chunk and img.002 is the backing
file of img.003.
The backing chain is like this:
  img.000 <-- img.001 <-- img.002 <-- img.003

So that means the data of img.003 saves the same range with img.000 but
different data.

I know I can use *`qemu-img commit'* but it only commit the data from
img.003 to img.002.

If I use *`qemu-img rebase -b img.000 img.003`*, the data of img.001 and
img.002 will merge into img.003.

What I want is only commit the data in img.003 into img.000 because the
data of the two image are the same range(1st chunk)

Is there anyway to commit(or merge) data of active image into corresponding
backing file?

thx

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2018-09-14 14:48 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-13  3:33 [Qemu-devel] Can I only commit from active image to corresponding range of its backing file by qemu cmd? lampahome
2018-09-13 13:22 ` Max Reitz
2018-09-13 17:05   ` Eric Blake
2018-09-13 18:37     ` Max Reitz
2018-09-13 19:41       ` Max Reitz
2018-09-13 20:06         ` Eric Blake
2018-09-13 20:01       ` Eric Blake
2018-09-13 20:44         ` Max Reitz
2018-09-14  2:19           ` lampahome
2018-09-14 14:48             ` Eric Blake

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.