Re: [Qemu-devel] [PATCH V12 5/6] add-cow file format

2012-09-12 Thread Kevin Wolf
Am 12.09.2012 09:28, schrieb Dong Xu Wang: >>> +static bool is_allocated(BlockDriverState *bs, int64_t sector_num) >>> +{ >>> +BDRVAddCowState *s = bs->opaque; >>> +BlockCache *c = s->bitmap_cache; >>> +int64_t cluster_num = sector_num / SECTORS_PER_CLUSTER; >>> +uint8_t *table

Re: [Qemu-devel] [PATCH V12 5/6] add-cow file format

2012-09-12 Thread Dong Xu Wang
On Tue, Sep 11, 2012 at 5:40 PM, Kevin Wolf wrote: > Am 10.08.2012 17:39, schrieb Dong Xu Wang: >> add-cow file format core code. It use block-cache.c as cache code. >> >> Signed-off-by: Dong Xu Wang >> --- >> block/Makefile.objs |1 + >> block/add-cow.c | 613 >> ++

Re: [Qemu-devel] [PATCH V12 5/6] add-cow file format

2012-09-11 Thread Kevin Wolf
Am 10.09.2012 04:25, schrieb Dong Xu Wang: > On Fri, Sep 7, 2012 at 4:19 AM, Michael Roth > wrote: >> On Fri, Aug 10, 2012 at 11:39:44PM +0800, Dong Xu Wang wrote: >>> +typedef struct AddCowHeader { >>> +uint64_tmagic; >>> +uint32_tversion; >>> + >>> +uint32_tb

Re: [Qemu-devel] [PATCH V12 5/6] add-cow file format

2012-09-11 Thread Kevin Wolf
Am 10.08.2012 17:39, schrieb Dong Xu Wang: > add-cow file format core code. It use block-cache.c as cache code. > > Signed-off-by: Dong Xu Wang > --- > block/Makefile.objs |1 + > block/add-cow.c | 613 > +++ > block/add-cow.h | 85

Re: [Qemu-devel] [PATCH V12 5/6] add-cow file format

2012-09-09 Thread Dong Xu Wang
On Fri, Sep 7, 2012 at 4:19 AM, Michael Roth wrote: > On Fri, Aug 10, 2012 at 11:39:44PM +0800, Dong Xu Wang wrote: >> add-cow file format core code. It use block-cache.c as cache code. >> >> Signed-off-by: Dong Xu Wang >> --- >> block/Makefile.objs |1 + >> block/add-cow.c | 613 >> ++

Re: [Qemu-devel] [PATCH V12 5/6] add-cow file format

2012-09-06 Thread Michael Roth
On Fri, Aug 10, 2012 at 11:39:44PM +0800, Dong Xu Wang wrote: > add-cow file format core code. It use block-cache.c as cache code. > > Signed-off-by: Dong Xu Wang > --- > block/Makefile.objs |1 + > block/add-cow.c | 613 > +++ > block/ad

[Qemu-devel] [PATCH V12 5/6] add-cow file format

2012-08-10 Thread Dong Xu Wang
add-cow file format core code. It use block-cache.c as cache code. Signed-off-by: Dong Xu Wang --- block/Makefile.objs |1 + block/add-cow.c | 613 +++ block/add-cow.h | 85 +++ block_int.h |2 + 4 files changed, 701