Re: [Qemu-devel] [PATCH v2] support add-cow format

2011-09-23 Thread Paolo Bonzini
On 09/23/2011 02:20 PM, Kevin Wolf wrote: +static BlockDriverAIOCB *add_cow_aio_flush(BlockDriverState *bs, +BlockDriverCompletionFunc *cb, void *opaque) +{ +BDRVAddCowState *state = bs->opaque; +bdrv_aio_flush(state->image_hd, cb, opaque); +return bdrv_aio_flush(bs->file, cb,

Re: [Qemu-devel] [PATCH v2] support add-cow format

2011-09-23 Thread Kevin Wolf
Am 21.09.2011 10:56, schrieb Dong Xu Wang: > ubuntu.img is a disk image which has been installed OS. > (1) Create a raw image with the same size of ubuntu.img > qemu-img create -f raw test.raw 8G > (2) Create a add-cow image which will store dirty bitmap > qemu-img create -f add-cow test.add-cow -o

[Qemu-devel] [PATCH v2] support add-cow format

2011-09-23 Thread Dong Xu Wang
ubuntu.img is a disk image which has been installed OS. (1) Create a raw image with the same size of ubuntu.img qemu-img create -f raw test.raw 8G (2) Create a add-cow image which will store dirty bitmap qemu-img create -f add-cow test.add-cow -o backing_file=ubuntu.img,image_file=test.raw (3) Run

Re: [Qemu-devel] [PATCH v2] support add-cow format

2011-09-23 Thread Mars.cao
Hi,Dong Xu Wang, On 09/22/2011 09:51 AM, Dong Xu Wang wrote: ubuntu.img is a disk image which has been installed OS. (1) Create a raw image with the same size of ubuntu.img qemu-img create -f raw test.raw 8G (2) Create a add-cow image which will store dirty bitmap qemu-img create -f add-cow te

[Qemu-devel] [PATCH v2] support add-cow format

2011-09-21 Thread Dong Xu Wang
ubuntu.img is a disk image which has been installed OS. (1) Create a raw image with the same size of ubuntu.img qemu-img create -f raw test.raw 8G (2) Create a add-cow image which will store dirty bitmap qemu-img create -f add-cow test.add-cow -o backing_file=ubuntu.img,image_file=test.raw (3) Run