qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Rene Rebe <rene@exactcode.de>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 3/3] SCSI divide capacity by s->cluster_size
Date: Wed, 28 Jan 2009 17:49:46 +0100	[thread overview]
Message-ID: <49808CAA.8020300@exactcode.de> (raw)
In-Reply-To: <20090128145211.871815000@redhat.com>

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 =/ s->cluster_size;

/=

 >          /* 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 =/ s->cluster_size;

dito?

 >              /* Returned value is the address of the last sector.  */
 >              if (nb_sectors) {
 >                  nb_sectors--;

-- 
   René Rebe - ExactCODE GmbH - Europe, Germany, Berlin
   http://exactcode.de | http://t2-project.org | http://rene.rebe.name

  reply	other threads:[~2009-01-28 16:49 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-28 14:51 [Qemu-devel] [PATCH 0/3] fixes for the SCSI disk emulation Rik van Riel
2009-01-28 14:51 ` [Qemu-devel] [PATCH 1/3] fix signed/unsigned overflows in SCSI disk Rik van Riel
2009-01-28 14:51 ` [Qemu-devel] [PATCH 2/3] support >2TB SCSI disks Rik van Riel
2009-01-28 14:51 ` [Qemu-devel] [PATCH 3/3] SCSI divide capacity by s->cluster_size Rik van Riel
2009-01-28 16:49   ` Rene Rebe [this message]
2009-01-28 16:52     ` Rik van Riel
2009-01-28 21:42   ` Anthony Liguori
2009-01-28 21:59 ` [Qemu-devel] [PATCH 0/3] fixes for the SCSI disk emulation Anthony Liguori

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=49808CAA.8020300@exactcode.de \
    --to=rene@exactcode.de \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).