From: Wei Kong Subject: [PATCH] ioemu: need probe backing file format Date: Tue, 18 Aug 2009 10:42:12 +0800 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0024199054==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============0024199054== Content-Type: multipart/alternative; boundary=0016e6d58cb234817f04716177d9 --0016e6d58cb234817f04716177d9 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Revert changeset 17646 Due to qcow2 also has backing file. Signed-off-by: Wei Kong --- xen-3.4.0-testing/tools/ioemu-remote/block.c 2009-08-18 18:35:42.000000000 +0800 +++ xen-3.4.0-testing/tools/ioemu-remote/block.c 2009-08-18 18:35:46.000000000 +0800 @@ -450,7 +450,7 @@ int bdrv_open2(BlockDriverState *bs, con bs->backing_hd = bdrv_new(""); path_combine(backing_filename, sizeof(backing_filename), filename, bs->backing_file); - ret = bdrv_open2(bs->backing_hd, backing_filename, open_flags, &bdrv_raw); + ret = bdrv_open(bs->backing_hd, backing_filename, open_flags, &bdrv_raw); if (ret < 0) { bdrv_close(bs); return ret; --0016e6d58cb234817f04716177d9 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Revert changeset 17646

Due to qcow2 also has backing file.

Si= gned-off-by: Wei Kong <= weikong.cn@gmail.com>

--- xen-3.4.0-testing/tools/ioemu-remote/block.c=C2=A0=C2=A0 2009-08-18= 18:35:42.000000000 +0800
+++ xen-3.4.0-testing/tools/ioemu-remote/block= .c=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 2009-08-18 18:35:46.000000000 = +0800
@@ -450,7 +450,7 @@ int bdrv_open2(BlockDriverState *bs, con
=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 bs->backing_hd =3D bdrv_new(&quo= t;");
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 path_combine= (backing_filename, sizeof(backing_filename),
=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 filename, bs->backing_file);
-=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ret =3D bdrv_open2(bs->backi= ng_hd, backing_filename, open_flags, &bdrv_raw);
+=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 ret =3D bdrv_open(bs->backing_hd, backing_filen= ame, open_flags, &bdrv_raw);
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 if (ret < 0) {
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 bdrv_close(bs);
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 re= turn ret;

--0016e6d58cb234817f04716177d9-- --===============0024199054== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0024199054==--