Re: is (rscsi_disks[i].sector_size != 512) ok ?

From: sara@procsys.com
Date: Tue Apr 18 2000 - 10:07:55 EST


> > sda:sd.cBad block number/count requestedscsidisk I/O error: dev 08:00, sector 0
> > unable to read partition table
> >
> > It happens in kernel versions 2.2.12 and 2.2.14
> >
> > What should be done to make it working for 4096 size sectors?
>
> Try and find out what partition format broke the code
>

This is reproducible from scsi_debug.c too

--- scsi_debug.c 2000/04/18 15:02:21 1.1
+++ scsi_debug.c 2000/04/18 15:02:40
@@ -285,7 +285,7 @@
         buff[1] = (CAPACITY >> 16) & 0xff;
         buff[2] = (CAPACITY >> 8) & 0xff;
         buff[3] = CAPACITY & 0xff;
- buff[6] = 2; /* 512 byte sectors */
+ buff[6] = 2*8; /* 4096 byte sectors */
         scsi_debug_errsts = 0;
         break;
     case READ_10:

With this change if you do insmod scsi_debug.o you'll get the same
message.

-Saravanan.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Apr 23 2000 - 21:00:13 EST