Re: [Qemu-devel] [PATCH v2 00/17] Add qemu-img subcommand to dump file metadata

2013-07-19 Thread Wenchao Xia
于 2013-7-19 20:14, Paolo Bonzini 写道: Il 19/07/2013 12:48, Wenchao Xia ha scritto: I think dump of allocated info in qemu-img in this series, can do dirty change tracking job for backing chain snapshot now, qemu's QMP interface is not very needed. Only thing not perfect, is that it talks wi

Re: [Qemu-devel] [PATCH v2 00/17] Add qemu-img subcommand to dump file metadata

2013-07-19 Thread Paolo Bonzini
Il 19/07/2013 12:48, Wenchao Xia ha scritto: > I think dump of allocated info in qemu-img in this series, can do > dirty change tracking job for backing chain snapshot now, qemu's QMP > interface is not very needed. > Only thing not perfect, is that it talks with string. It uses JSON, actually

Re: [Qemu-devel] [PATCH v2 00/17] Add qemu-img subcommand to dump file metadata

2013-07-19 Thread Wenchao Xia
于 2013-7-17 0:57, Paolo Bonzini 写道: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Il 16/07/2013 18:56, Eric Blake ha scritto: On 07/16/2013 10:29 AM, Paolo Bonzini wrote: This series adds a subcommand to "map" that can dump file metadata. Metadata that is dumped includes: - whether blocks are

Re: [Qemu-devel] [PATCH v2 00/17] Add qemu-img subcommand to dump file metadata

2013-07-19 Thread Stefan Hajnoczi
On Tue, Jul 16, 2013 at 06:29:11PM +0200, Paolo Bonzini wrote: > This series adds a subcommand to "map" that can dump file metadata. > Metadata that is dumped includes: > > - whether blocks are allocated in bs->file and, if so, where > > - whether blocks are zero > > - whether data is read from

Re: [Qemu-devel] [PATCH v2 00/17] Add qemu-img subcommand to dump file metadata

2013-07-18 Thread Stefan Hajnoczi
On Tue, Jul 16, 2013 at 06:29:11PM +0200, Paolo Bonzini wrote: > This series adds a subcommand to "map" that can dump file metadata. > Metadata that is dumped includes: > > - whether blocks are allocated in bs->file and, if so, where > > - whether blocks are zero > > - whether data is read from

Re: [Qemu-devel] [PATCH v2 00/17] Add qemu-img subcommand to dump file metadata

2013-07-18 Thread Paolo Bonzini
Il 18/07/2013 10:17, Peter Lieven ha scritto: > > maybe i have missed it in your patches, but would it be also possible to issue > DISCARDZEROES ioctl on linux to return zero status for block devices also? I think that would belong in your patches. Once we have discard_zeroes, we can use it as y

Re: [Qemu-devel] [PATCH v2 00/17] Add qemu-img subcommand to dump file metadata

2013-07-18 Thread Peter Lieven
On 16.07.2013 18:29, Paolo Bonzini wrote: This series adds a subcommand to "map" that can dump file metadata. Metadata that is dumped includes: - whether blocks are allocated in bs->file and, if so, where - whether blocks are zero - whether data is read from bs or bs->backing_hd Metadata is d

Re: [Qemu-devel] [PATCH v2 00/17] Add qemu-img subcommand to dump file metadata

2013-07-16 Thread Eric Blake
On 07/16/2013 10:29 AM, Paolo Bonzini wrote: > This series adds a subcommand to "map" that can dump file metadata. > Metadata that is dumped includes: > > - whether blocks are allocated in bs->file and, if so, where > > - whether blocks are zero > > - whether data is read from bs or bs->backing_

Re: [Qemu-devel] [PATCH v2 00/17] Add qemu-img subcommand to dump file metadata

2013-07-16 Thread Paolo Bonzini
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Il 16/07/2013 18:56, Eric Blake ha scritto: > On 07/16/2013 10:29 AM, Paolo Bonzini wrote: >> This series adds a subcommand to "map" that can dump file >> metadata. Metadata that is dumped includes: >> >> - whether blocks are allocated in bs->file and

[Qemu-devel] [PATCH v2 00/17] Add qemu-img subcommand to dump file metadata

2013-07-16 Thread Paolo Bonzini
This series adds a subcommand to "map" that can dump file metadata. Metadata that is dumped includes: - whether blocks are allocated in bs->file and, if so, where - whether blocks are zero - whether data is read from bs or bs->backing_hd Metadata is dumped for an entire chain of images. One ex