From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LSDbz-0006Yw-Ck for qemu-devel@nongnu.org; Wed, 28 Jan 2009 11:49:59 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LSDbw-0006Xy-SJ for qemu-devel@nongnu.org; Wed, 28 Jan 2009 11:49:58 -0500 Received: from [199.232.76.173] (port=46630 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LSDbv-0006Xf-Os for qemu-devel@nongnu.org; Wed, 28 Jan 2009 11:49:55 -0500 Received: from mr01.hansenet.de ([213.191.74.10]:33802) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LSDbv-0000XK-AA for qemu-devel@nongnu.org; Wed, 28 Jan 2009 11:49:55 -0500 Message-ID: <49808CAA.8020300@exactcode.de> Date: Wed, 28 Jan 2009 17:49:46 +0100 From: Rene Rebe MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH 3/3] SCSI divide capacity by s->cluster_size References: <20090128145137.396187000@redhat.com> <20090128145211.871815000@redhat.com> In-Reply-To: <20090128145211.871815000@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: Quoted-Printable Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Hi, > --- qemu.orig/trunk/hw/scsi-disk.c > +++ qemu/trunk/hw/scsi-disk.c > @@ -734,6 +734,7 @@ static int32_t scsi_send_command(SCSIDev > /* The normal LEN field for this command is zero. */ > memset(outbuf, 0, 8); > bdrv_get_geometry(s->bdrv, &nb_sectors); > + nb_sectors =3D/ s->cluster_size; /=3D > /* Returned value is the address of the last sector. */ > if (nb_sectors) { > nb_sectors--; > @@ -834,6 +835,7 @@ static int32_t scsi_send_command(SCSIDev > DPRINTF("SAI READ CAPACITY(16)\n"); > memset(outbuf, 0, len); > bdrv_get_geometry(s->bdrv, &nb_sectors); > + nb_sectors =3D/ s->cluster_size; dito? > /* Returned value is the address of the last sector. */ > if (nb_sectors) { > nb_sectors--; --=20 Ren=E9 Rebe - ExactCODE GmbH - Europe, Germany, Berlin http://exactcode.de | http://t2-project.org | http://rene.rebe.name