From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:59523) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SQE0m-00047r-PF for qemu-devel@nongnu.org; Fri, 04 May 2012 04:37:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SQE0g-000369-6T for qemu-devel@nongnu.org; Fri, 04 May 2012 04:37:12 -0400 Received: from mx1.redhat.com ([209.132.183.28]:28055) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SQE0f-00035h-Uj for qemu-devel@nongnu.org; Fri, 04 May 2012 04:37:06 -0400 Message-ID: <4FA3952D.6070008@redhat.com> Date: Fri, 04 May 2012 10:37:01 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1336119344-30445-1-git-send-email-ronniesahlberg@gmail.com> <1336119344-30445-2-git-send-email-ronniesahlberg@gmail.com> In-Reply-To: <1336119344-30445-2-git-send-email-ronniesahlberg@gmail.com> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] ISCSI: Readcapacity retruned the lba of the last sector. Total number of sectors is one more. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Ronnie Sahlberg Cc: kwolf@redhat.com, qemu-devel@nongnu.org Il 04/05/2012 10:15, Ronnie Sahlberg ha scritto: > itask->iscsilun->num_blocks = rc16->returned_lba; > - itask->bs->total_sectors = rc16->returned_lba * > + itask->bs->total_sectors = (rc16->returned_lba + 1) * What about itask->iscsilun->num_blocks? :) No need to resend, I fixed this locally.