qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 3/3] SCSI divide capacity by s->cluster_size


From: Rene Rebe
Subject: Re: [Qemu-devel] [PATCH 3/3] SCSI divide capacity by s->cluster_size
Date: Wed, 28 Jan 2009 17:49:46 +0100
User-agent: Thunderbird 2.0.0.14 (X11/20080616)

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 via email to

[Prev in Thread] Current Thread [Next in Thread]