From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53123) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uwqex-00006b-2X for qemu-devel@nongnu.org; Wed, 10 Jul 2013 05:26:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uwqew-0007UJ-1D for qemu-devel@nongnu.org; Wed, 10 Jul 2013 05:26:03 -0400 Received: from mx1.redhat.com ([209.132.183.28]:65398) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uwqev-0007U9-PF for qemu-devel@nongnu.org; Wed, 10 Jul 2013 05:26:01 -0400 Date: Wed, 10 Jul 2013 11:25:54 +0200 From: Kevin Wolf Message-ID: <20130710092554.GD3898@dhcp-200-207.str.redhat.com> References: <1372338695-411-1-git-send-email-pl@kamp.de> <1372338695-411-3-git-send-email-pl@kamp.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1372338695-411-3-git-send-email-pl@kamp.de> Subject: Re: [Qemu-devel] [PATCHv2 02/11] iscsi: read unmap info from block limits vpd page List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Lieven Cc: pbonzini@redhat.com, ronniesahlberg@gmail.com, qemu-devel@nongnu.org, stefanha@redhat.com Am 27.06.2013 um 15:11 hat Peter Lieven geschrieben: > Signed-off-by: Peter Lieven > --- > block/iscsi.c | 80 ++++++++++++++++++++++++++++++++++++++++----------------- > 1 file changed, 56 insertions(+), 24 deletions(-) > > diff --git a/block/iscsi.c b/block/iscsi.c > index a38a1bf..2e2455d 100644 > --- a/block/iscsi.c > +++ b/block/iscsi.c > @@ -54,6 +54,8 @@ typedef struct IscsiLun { > uint8_t lbpu; > uint8_t lbpws; > uint8_t lbpws10; > + uint32_t max_unmap; > + uint32_t max_unmap_bdc; > } IscsiLun; > > typedef struct IscsiAIOCB { > @@ -1007,6 +1009,37 @@ static QemuOptsList runtime_opts = { > }, > }; > > +static struct scsi_task *iscsi_do_inquiry(struct iscsi_context *iscsi, > + int lun, int evpd, int pc) { Oops, forgot to add the comment in the other mail... This isn't valid coding style, the brace belongs on a line of its own. Kevin