Re: [Qemu-devel] [PATCH v2 08/16] block: raw-posix image file reopen

2012-09-14 Thread Kevin Wolf
Am 13.09.2012 18:57, schrieb Jeff Cody: > On 09/13/2012 12:02 PM, Paolo Bonzini wrote: >> Il 13/09/2012 17:49, Jeff Cody ha scritto: >>> + >>> +/* >>> + * If we didn't have BDRV_O_NOCACHE set before, we may not have >>> allocated >>> + * aligned_buf >>> + */ >>> +ret = raw_allo

Re: [Qemu-devel] [PATCH v2 08/16] block: raw-posix image file reopen

2012-09-13 Thread Jeff Cody
On 09/13/2012 12:02 PM, Paolo Bonzini wrote: > Il 13/09/2012 17:49, Jeff Cody ha scritto: >> + >> +/* >> + * If we didn't have BDRV_O_NOCACHE set before, we may not have >> allocated >> + * aligned_buf >> + */ >> +ret = raw_allocate_aligned_buf(&raw_s->aligned_buf, >> +

Re: [Qemu-devel] [PATCH v2 08/16] block: raw-posix image file reopen

2012-09-13 Thread Paolo Bonzini
Il 13/09/2012 17:49, Jeff Cody ha scritto: > + > +/* > + * If we didn't have BDRV_O_NOCACHE set before, we may not have allocated > + * aligned_buf > + */ > +ret = raw_allocate_aligned_buf(&raw_s->aligned_buf, > + &raw_s->aligned_buf_size, state

[Qemu-devel] [PATCH v2 08/16] block: raw-posix image file reopen

2012-09-13 Thread Jeff Cody
This is derived from the Supriya Kannery's reopen patches. This contains the raw-posix driver changes for the bdrv_reopen_* functions. All changes are staged into a temporary scratch buffer during the prepare() stage, and copied over to the live structure during commit(). Upon abort(), all chang