Re: [Qemu-devel] [PATCH v6 08/20] block: vhdx - log parsing, replay, and flush support

2013-10-02 Thread Stefan Hajnoczi
On Tue, Oct 01, 2013 at 09:24:53AM -0400, Jeff Cody wrote: On Tue, Oct 01, 2013 at 01:31:36PM +0200, Stefan Hajnoczi wrote: On Wed, Sep 25, 2013 at 05:02:53PM -0400, Jeff Cody wrote: +} else if (!memcmp(desc-signature, zero, 4)) { +/* write 'count' sectors of sector */ +

Re: [Qemu-devel] [PATCH v6 08/20] block: vhdx - log parsing, replay, and flush support

2013-10-01 Thread Stefan Hajnoczi
On Wed, Sep 25, 2013 at 05:02:53PM -0400, Jeff Cody wrote: +static int vhdx_log_read_desc(BlockDriverState *bs, BDRVVHDXState *s, + VHDXLogEntries *log, VHDXLogDescEntries **buffer) +{ +int ret = 0; +uint32_t desc_sectors; +uint32_t sectors_read; +

Re: [Qemu-devel] [PATCH v6 08/20] block: vhdx - log parsing, replay, and flush support

2013-10-01 Thread Jeff Cody
On Tue, Oct 01, 2013 at 01:31:36PM +0200, Stefan Hajnoczi wrote: On Wed, Sep 25, 2013 at 05:02:53PM -0400, Jeff Cody wrote: +static int vhdx_log_read_desc(BlockDriverState *bs, BDRVVHDXState *s, + VHDXLogEntries *log, VHDXLogDescEntries **buffer) +{ +

[Qemu-devel] [PATCH v6 08/20] block: vhdx - log parsing, replay, and flush support

2013-09-25 Thread Jeff Cody
This adds support for VHDX v0 logs, as specified in Microsoft's VHDX Specification Format v1.00: https://www.microsoft.com/en-us/download/details.aspx?id=34750 The following support is added: * Log parsing, and validation - validate that an existing log is correct. * Log search - search