Received: from eggs.gnu.org ([2001:4830:134:3::10]:53215) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YIMlE-0006gU-7P for qemu-devel@nongnu.org; Mon, 02 Feb 2015 14:34:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YIMl9-0004Q7-4P for qemu-devel@nongnu.org; Mon, 02 Feb 2015 14:34:16 -0500 Received: from mx1.redhat.com ([209.132.183.28]:56254) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YIMl8-0004Q3-TN for qemu-devel@nongnu.org; Mon, 02 Feb 2015 14:34:11 -0500 Date: Mon, 2 Feb 2015 20:34:02 +0100 From: Kevin Wolf Message-ID: <20150202193402.GE19586@noname.redhat.com> References: <1422284444-12529-1-git-send-email-mreitz@redhat.com> <1422284444-12529-10-git-send-email-mreitz@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1422284444-12529-10-git-send-email-mreitz@redhat.com> Subject: Re: [Qemu-devel] [PATCH v3 09/14] qemu-io: Use blk_new_open() in openfile() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Max Reitz Cc: Stefano Stabellini , qemu-devel@nongnu.org, Stefan Hajnoczi , Markus Armbruster Am 26.01.2015 um 16:00 hat Max Reitz geschrieben: > Signed-off-by: Max Reitz > --- > qemu-io.c | 31 ++++++++++++------------------- > 1 file changed, 12 insertions(+), 19 deletions(-) > > diff --git a/qemu-io.c b/qemu-io.c > index 91a445a..81f8f64 100644 > --- a/qemu-io.c > +++ b/qemu-io.c > @@ -39,7 +39,6 @@ static ReadLineState *readline_state; > static int close_f(BlockDriverState *bs, int argc, char **argv) > { > blk_unref(qemuio_blk); > - qemuio_bs = NULL; > qemuio_blk = NULL; > return 0; > } This doesn't seem to be correct at this point in the series. qemuio_bs is still passed to qemuio_command(), which checks whether non-global commands are allowed to run using init_check_command(). At the end of the series, please remove qemuio_bs altogether. This version of the series leaves it around without any reader. Kevin