From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:43754) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCCo6-0003Zg-Sz for qemu-devel@nongnu.org; Thu, 13 Sep 2012 13:02:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TCCo5-0001iy-L8 for qemu-devel@nongnu.org; Thu, 13 Sep 2012 13:02:26 -0400 Received: from mx1.redhat.com ([209.132.183.28]:12784) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCCo5-0001ik-C3 for qemu-devel@nongnu.org; Thu, 13 Sep 2012 13:02:25 -0400 Message-ID: <50521196.9010208@redhat.com> Date: Thu, 13 Sep 2012 13:02:14 -0400 From: Jeff Cody MIME-Version: 1.0 References: <925addfddafe2c9c0c35a55d3de954ad1d0b0a5f.1347548248.git.jcody@redhat.com> <50520461.6090001@redhat.com> In-Reply-To: <50520461.6090001@redhat.com> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2 09/16] block: raw image file reopen Reply-To: jcody@redhat.com List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: kwolf@redhat.com, supriyak@linux.vnet.ibm.com, eblake@redhat.com, qemu-devel@nongnu.org, stefanha@gmail.com On 09/13/2012 12:05 PM, Paolo Bonzini wrote: > Il 13/09/2012 17:49, Jeff Cody ha scritto: >> +/* We have nothing to do for raw reopen, stubs just return >> + * success */ >> +static int raw_reopen_prepare(BDRVReopenState *state, Error **errp) >> +{ >> + return 0; >> +} >> + >> +static void raw_reopen_commit(BDRVReopenState *state) >> +{ >> + return; >> +} >> + >> +static void raw_reopen_abort(BDRVReopenState *state) >> +{ >> + return; >> +} >> + >> + > > Commit and abort are optional, aren't they? > > BTW, vdi and vpc should also support reopen. > > Paolo > The commit and abort block driver handlers are indeed optional, prepare is the only required one. I kept the stubs for them for completeness, however (I can remove them if that causes heartburn for others). A quick look at the vdi and vpc block drivers seems to indicate that both of those can be supported via stubs as well; I'll add them to v3. Thanks, Jeff