Re: [Qemu-devel] [PATCH v2 12/17] qemu-img: add a "map" subcommand

2013-07-19 Thread Eric Blake
On 07/16/2013 10:29 AM, Paolo Bonzini wrote: > This command dumps the metadata of an entire chain, in either tabular or JSON > format. > > Signed-off-by: Paolo Bonzini > --- > v1->v2: mention encrypted clusters, use PRId64 > > qemu-img-cmds.hx | 6 ++ > qemu-img.c | 185 > +

Re: [Qemu-devel] [PATCH v2 12/17] qemu-img: add a "map" subcommand

2013-07-18 Thread Paolo Bonzini
Il 18/07/2013 09:25, Fam Zheng ha scritto: >> > +/* Probe up to 1 G at a time. */ >> > +sector_num = (curr.start + curr.length) >> BDRV_SECTOR_BITS; >> > +nsectors_left = DIV_ROUND_UP(length, BDRV_SECTOR_SIZE) - >> > sector_num; >> > +n = MAX(1 << (30 - BDRV_SECTOR

Re: [Qemu-devel] [PATCH v2 12/17] qemu-img: add a "map" subcommand

2013-07-18 Thread Fam Zheng
On Tue, 07/16 18:29, Paolo Bonzini wrote: > This command dumps the metadata of an entire chain, in either tabular or JSON > format. > > Signed-off-by: Paolo Bonzini > --- > v1->v2: mention encrypted clusters, use PRId64 > > qemu-img-cmds.hx | 6 ++ > qemu-img.c | 185 >

[Qemu-devel] [PATCH v2 12/17] qemu-img: add a "map" subcommand

2013-07-16 Thread Paolo Bonzini
This command dumps the metadata of an entire chain, in either tabular or JSON format. Signed-off-by: Paolo Bonzini --- v1->v2: mention encrypted clusters, use PRId64 qemu-img-cmds.hx | 6 ++ qemu-img.c | 185 +++ 2 files change