Re: [Qemu-devel] [RFC] qemu-img: add option -d in convert

2013-07-02 Thread Stefan Hajnoczi
On Thu, Jun 27, 2013 at 08:30:04PM +0800, Wenchao Xia wrote: > 于 2013-6-27 17:01, Stefan Hajnoczi 写道: > >On Tue, Jun 25, 2013 at 07:14:19PM +0800, Wenchao Xia wrote: > >>于 2013-6-25 17:13, Stefan Hajnoczi 写道: > >>>On Thu, Jun 20, 2013 at 04:59:17PM +0800, Wenchao Xia wrote: > >BTW we already have q

Re: [Qemu-devel] [RFC] qemu-img: add option -d in convert

2013-06-27 Thread Wenchao Xia
于 2013-6-27 17:01, Stefan Hajnoczi 写道: On Tue, Jun 25, 2013 at 07:14:19PM +0800, Wenchao Xia wrote: 于 2013-6-25 17:13, Stefan Hajnoczi 写道: On Thu, Jun 20, 2013 at 04:59:17PM +0800, Wenchao Xia wrote: If I understand correctly, you have a backing chain with internal snapshots: imageA(sn0)->im

Re: [Qemu-devel] [RFC] qemu-img: add option -d in convert

2013-06-27 Thread Wenchao Xia
于 2013-6-27 17:01, Stefan Hajnoczi 写道: On Tue, Jun 25, 2013 at 07:14:19PM +0800, Wenchao Xia wrote: 于 2013-6-25 17:13, Stefan Hajnoczi 写道: On Thu, Jun 20, 2013 at 04:59:17PM +0800, Wenchao Xia wrote: If I understand correctly, you have a backing chain with internal snapshots: imageA(sn0)->im

Re: [Qemu-devel] [RFC] qemu-img: add option -d in convert

2013-06-27 Thread Stefan Hajnoczi
On Tue, Jun 25, 2013 at 07:14:19PM +0800, Wenchao Xia wrote: > 于 2013-6-25 17:13, Stefan Hajnoczi 写道: > >On Thu, Jun 20, 2013 at 04:59:17PM +0800, Wenchao Xia wrote: > > > >If I understand correctly, you have a backing chain with internal > >snapshots: > > > >>imageA(sn0)->imageB(sn0,sn1)->imageC(s

Re: [Qemu-devel] [RFC] qemu-img: add option -d in convert

2013-06-25 Thread Wenchao Xia
于 2013-6-25 17:13, Stefan Hajnoczi 写道: On Thu, Jun 20, 2013 at 04:59:17PM +0800, Wenchao Xia wrote: If I understand correctly, you have a backing chain with internal snapshots: imageA(sn0)->imageB(sn0,sn1)->imageC(sn0) And you want to convert this to a chain of external snapshots: What i

Re: [Qemu-devel] [RFC] qemu-img: add option -d in convert

2013-06-25 Thread Stefan Hajnoczi
On Thu, Jun 20, 2013 at 04:59:17PM +0800, Wenchao Xia wrote: If I understand correctly, you have a backing chain with internal snapshots: > imageA(sn0)->imageB(sn0,sn1)->imageC(sn0) And you want to convert this to a chain of external snapshots: > imageA_sn0.qcow2-->imageA.qcow2-->imageB_sn0.qco

[Qemu-devel] [RFC] qemu-img: add option -d in convert

2013-06-20 Thread Wenchao Xia
Hi, This is a draft design which aimed for internal snapshot convert, hope to get your comments: Internal snapshot is not as easy as external snapshot, to query and convert. This patch will improve convertion side, which helps internal / external snapshot mixed case. With it user can treat int