From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56873) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aNuRq-00014l-MO for qemu-devel@nongnu.org; Mon, 25 Jan 2016 22:37:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aNuRp-0000z7-TK for qemu-devel@nongnu.org; Mon, 25 Jan 2016 22:37:42 -0500 Date: Tue, 26 Jan 2016 11:37:31 +0800 From: Fam Zheng Message-ID: <20160126033731.GD23224@ad.usersys.redhat.com> References: <1453689887-2567-1-git-send-email-famz@redhat.com> <1453689887-2567-5-git-send-email-famz@redhat.com> <20160125131754.GF5154@noname.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160125131754.GF5154@noname.redhat.com> Subject: Re: [Qemu-devel] [PATCH v8 04/15] raw: Assign bs to file in raw_co_get_block_status List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf Cc: qemu-block@nongnu.org, qemu-devel@nongnu.org, mreitz@redhat.com, Stefan Hajnoczi , pbonzini@redhat.com On Mon, 01/25 14:17, Kevin Wolf wrote: > Am 25.01.2016 um 03:44 hat Fam Zheng geschrieben: > > diff --git a/block/raw_bsd.c b/block/raw_bsd.c > > index 9a8933b..fd355d5 100644 > > --- a/block/raw_bsd.c > > +++ b/block/raw_bsd.c > > @@ -119,6 +119,7 @@ static int64_t coroutine_fn raw_co_get_block_status(BlockDriverState *bs, > > BlockDriverState **file) > > { > > *pnum = nb_sectors; > > + *file = bs; > > This should be bs->file->bs. > Yes, will fix. I was confused about whether this is a format or a protocol. Fam