On Mon, Jul 09, 2012 at 04:36:07PM +0200, Christoph Hellwig wrote: > On Mon, Jul 09, 2012 at 04:54:08PM +0800, Wenchao Xia wrote: > > Hi, Paolo and folks, > > qemu have good capabilities to access different virtual disks, I want > > to expose its block layer API to let 3rd party program linked in, such > > as management stack or block tools, to access images data directly. > > > > Following is the objects: > > (1) API to write/read block device at offset. > > (2) Determine the image type,qcow2/qed/raw > > (3) Determine which blocks are allocated. > > (4) Determine backing file. > > Sounds like you want a procedural interface for that. At least for (1) > I have patches I'll submit soon to add qemu img read/write commands.
How is that different from all the qemu-io commands? Stefan