From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44877) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WLY0L-00059B-T4 for qemu-devel@nongnu.org; Thu, 06 Mar 2014 08:06:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WLY0G-0002UX-Ka for qemu-devel@nongnu.org; Thu, 06 Mar 2014 08:06:29 -0500 Received: from lnantes-156-75-100-125.w80-12.abo.wanadoo.fr ([80.12.84.125]:55833 helo=paradis.irqsave.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WLY0G-0002UT-EI for qemu-devel@nongnu.org; Thu, 06 Mar 2014 08:06:24 -0500 Date: Thu, 6 Mar 2014 14:06:24 +0100 From: =?iso-8859-1?Q?Beno=EEt?= Canet Message-ID: <20140306130624.GF3132@irqsave.net> References: <1394055700-5988-1-git-send-email-mreitz@redhat.com> <1394055700-5988-6-git-send-email-mreitz@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <1394055700-5988-6-git-send-email-mreitz@redhat.com> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 5/5] block/raw-win32: Strip "file:" prefix on creation List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Max Reitz Cc: Kevin Wolf , qemu-devel@nongnu.org, Stefan Hajnoczi The Wednesday 05 Mar 2014 =E0 22:41:40 (+0100), Max Reitz wrote : > The bdrv_create() implementation of the block/raw-win32 "file" protocol > driver should strip the "file:" prefix from filenames if present. >=20 > Signed-off-by: Max Reitz > --- > block/raw-win32.c | 2 ++ > 1 file changed, 2 insertions(+) >=20 > diff --git a/block/raw-win32.c b/block/raw-win32.c > index 0755434..9954748 100644 > --- a/block/raw-win32.c > +++ b/block/raw-win32.c > @@ -481,6 +481,8 @@ static int raw_create(const char *filename, QEMUOpt= ionParameter *options, > int fd; > int64_t total_size =3D 0; > =20 > + strstart(filename, "file:", &filename); > + > /* Read out options */ > while (options && options->name) { > if (!strcmp(options->name, BLOCK_OPT_SIZE)) { > --=20 > 1.9.0 >=20 >=20 Reviewed-by: Benoit Canet