Re: [Qemu-devel] [PATCH v6 11/20] block: vhdx write support

2013-10-01 Thread Jeff Cody
On Tue, Oct 01, 2013 at 03:29:17PM +0200, Stefan Hajnoczi wrote: > On Wed, Sep 25, 2013 at 05:02:56PM -0400, Jeff Cody wrote: > > @@ -1070,7 +1070,43 @@ exit: > > return ret; > > } > > > > +/* > > + * Allocate a new payload block at the end of the file. > > + * > > + * Allocation will happe

Re: [Qemu-devel] [PATCH v6 11/20] block: vhdx write support

2013-10-01 Thread Stefan Hajnoczi
On Wed, Sep 25, 2013 at 05:02:56PM -0400, Jeff Cody wrote: > @@ -1070,7 +1070,43 @@ exit: > return ret; > } > > +/* > + * Allocate a new payload block at the end of the file. > + * > + * Allocation will happen at 1MB alignment inside the file > + * > + * Returns the file offset start of the

[Qemu-devel] [PATCH v6 11/20] block: vhdx write support

2013-09-25 Thread Jeff Cody
This adds support for writing to VHDX image files, using coroutines. Writes into the BAT table goes through the VHDX log. Currently, BAT table writes occur when expanding a dynamic VHDX file, and allocating a new BAT entry. Signed-off-by: Jeff Cody --- block/vhdx.c | 150 +++