On Wed, Jul 31, 2013 at 11:23:51PM -0400, Jeff Cody wrote: > @@ -998,6 +1006,16 @@ exit: > > > > +/* Per the spec, on the first write of guest-visible data to the file the > + * data write guid must be updated in the header */ > +void vhdx_user_visible_write(BlockDriverState *bs, BDRVVHDXState *s) > +{ > + if (s->first_visible_write) { > + s->first_visible_write = false; > + vhdx_update_headers(bs, s, true, NULL);
Error handling is missing.