2003-11-19 23:30:30

by Adam Radford

[permalink] [raw]
Subject: [PATCH] 2.4.23-rc3 fix scsi disk targets over 1TB to not EIO

diff -Naur linux-2.4.23-rc2/drivers/scsi/sd.c linux-2.4.23-rc3/drivers/scsi/sd.c
--- linux-2.4.23-rc2/drivers/scsi/sd.c Mon Aug 25 04:44:42 2003
+++ linux-2.4.23-rc3/drivers/scsi/sd.c Wed Nov 19 15:15:38 2003
@@ -294,7 +294,8 @@

static int sd_init_command(Scsi_Cmnd * SCpnt)
{
- int dev, block, this_count;
+ int dev, this_count;
+ unsigned long block;
struct hd_struct *ppnt;
Scsi_Disk *dpnt;
#if CONFIG_SCSI_LOGGING


2003-11-19 23:53:13

by Jeff Garzik

[permalink] [raw]
Subject: Re: [PATCH] 2.4.23-rc3 fix scsi disk targets over 1TB to not EIO

Adam Radford wrote:
> diff -Naur linux-2.4.23-rc2/drivers/scsi/sd.c linux-2.4.23-rc3/drivers/scsi/sd.c
> --- linux-2.4.23-rc2/drivers/scsi/sd.c Mon Aug 25 04:44:42 2003
> +++ linux-2.4.23-rc3/drivers/scsi/sd.c Wed Nov 19 15:15:38 2003
> @@ -294,7 +294,8 @@
>
> static int sd_init_command(Scsi_Cmnd * SCpnt)
> {
> - int dev, block, this_count;
> + int dev, this_count;
> + unsigned long block;
> struct hd_struct *ppnt;
> Scsi_Disk *dpnt;
> #if CONFIG_SCSI_LOGGING


What about u64 instead of unsigned long?

Jeff