[8676] in linux-scsi channel archive
Re: is (rscsi_disks[i].sector_size != 512) ok ?
daemon@ATHENA.MIT.EDU (sara@procsys.com)
Wed Apr 19 01:00:50 2000
Date: Wed, 19 Apr 2000 10:15:56 +0530 (IST)
From: <sara@procsys.com>
To: linux-scsi@vger.rutgers.edu
Message-ID: <Pine.LNX.4.10.10004191014500.17615-100000@yonder.procsys.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
> > 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-scsi" in
the body of a message to majordomo@vger.rutgers.edu