From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44578) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WLXyN-0007Gd-8j for qemu-devel@nongnu.org; Thu, 06 Mar 2014 08:04:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WLXyI-0001hr-5o for qemu-devel@nongnu.org; Thu, 06 Mar 2014 08:04:27 -0500 Received: from lnantes-156-75-100-125.w80-12.abo.wanadoo.fr ([80.12.84.125]:55829 helo=paradis.irqsave.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WLXyH-0001hi-VN for qemu-devel@nongnu.org; Thu, 06 Mar 2014 08:04:22 -0500 Date: Thu, 6 Mar 2014 14:04:21 +0100 From: =?iso-8859-1?Q?Beno=EEt?= Canet Message-ID: <20140306130421.GD3132@irqsave.net> References: <1394055700-5988-1-git-send-email-mreitz@redhat.com> <1394055700-5988-4-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-4-git-send-email-mreitz@redhat.com> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 3/5] block/raw-posix: 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:38 (+0100), Max Reitz wrote : > The bdrv_create() implementation of the block/raw-posix "file" protocol > driver should strip the "file:" prefix from filenames if present. >=20 > Signed-off-by: Max Reitz > --- > block/raw-posix.c | 2 ++ > 1 file changed, 2 insertions(+) >=20 > diff --git a/block/raw-posix.c b/block/raw-posix.c > index 892145c..e6b4c1f 100644 > --- a/block/raw-posix.c > +++ b/block/raw-posix.c > @@ -1241,6 +1241,8 @@ static int raw_create(const char *filename, QEMUO= ptionParameter *options, > int result =3D 0; > 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