From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:54567) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SQDki-0006VU-NZ for qemu-devel@nongnu.org; Fri, 04 May 2012 04:20:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SQDkg-0001jq-I9 for qemu-devel@nongnu.org; Fri, 04 May 2012 04:20:36 -0400 Received: from mail-pb0-f45.google.com ([209.85.160.45]:56101) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SQDkg-0001iv-9X for qemu-devel@nongnu.org; Fri, 04 May 2012 04:20:34 -0400 Received: by pbbro12 with SMTP id ro12so4473056pbb.4 for ; Fri, 04 May 2012 01:20:32 -0700 (PDT) From: Ronnie Sahlberg Date: Fri, 4 May 2012 18:15:43 +1000 Message-Id: <1336119344-30445-1-git-send-email-ronniesahlberg@gmail.com> Subject: [Qemu-devel] [PATCH] Fix incorrect calculation of iscsi number of blocks List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: kwolf@redhat.com, pbonzini@redhat.com, qemu-devel@nongnu.org List, READCAPACITY16 returns the LBA of the last accessible block. Number of blocks is one greater than this. This patch fixes the incorrect calculation of total sectors that Paolo spotted and reported. Sorry, regards ronnie sahlberg