Received: from eggs.gnu.org ([2001:4830:134:3::10]:60670) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XTYIr-0002VK-Df for qemu-devel@nongnu.org; Mon, 15 Sep 2014 11:35:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XTYIk-0001FH-C7 for qemu-devel@nongnu.org; Mon, 15 Sep 2014 11:34:57 -0400 Received: from mx1.redhat.com ([209.132.183.28]:20313) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XTYIk-0001F6-4i for qemu-devel@nongnu.org; Mon, 15 Sep 2014 11:34:50 -0400 From: Markus Armbruster References: <1410620427-20089-1-git-send-email-armbru@redhat.com> <1410620427-20089-4-git-send-email-armbru@redhat.com> <20140915150005.GA25388@nodalink.com> Date: Mon, 15 Sep 2014 17:34:42 +0200 In-Reply-To: <20140915150005.GA25388@nodalink.com> (=?utf-8?Q?=22Beno?= =?utf-8?Q?=C3=AEt?= Canet"'s message of "Mon, 15 Sep 2014 15:00:05 +0000") Message-ID: <87tx487v8t.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v2 03/23] block: Connect BlockBackend to BlockDriverState List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?utf-8?Q?Beno=C3=AEt?= Canet Cc: kwolf@redhat.com, qemu-devel@nongnu.org, stefanha@redhat.com Beno=C3=AEt Canet writes: >> index ff95da6..fa8a7d0 100644 >> --- a/qemu-nbd.c >> +++ b/qemu-nbd.c >> @@ -689,7 +689,7 @@ int main(int argc, char **argv) >> } >>=20=20 > >> blk =3D blk_new("hda", &error_abort); > Is a blk_new_with_bs converssion missing here ? Yes. Max spotted it, too :) >> - bs =3D bdrv_new_root("hda", &error_abort); >> + bs =3D blk_bs(blk); >>=20=20 >> srcpath =3D argv[optind]; >> ret =3D bdrv_open(&bs, srcpath, NULL, NULL, flags, drv, &local_err); >> --=20 >> 1.9.3 >>=20