sector size of 2068?

Peter (deviant@datastacks.com)
Mon, 24 Aug 1998 21:25:26 +0000 ( )


What would need to be changed to make a SCSI disk with sector_size
reporting back as 2068 work?

I'm trying to get a ST410800W work. It looks like sd.c would need to be
changed some, but I (not being very experienced with low-level disk io) am
not sure if my first guess would be correct.

I'm seeing things like

if (block_sectors < 2) block_sectors = 2;
}
else if (sector_size == 2048)
{
error_sector <<= 2;
if (block_sectors < 4) block_sectors = 4;
}
else if (sector_size == 256)
error_sector >>= 1;
error_sector -= sd[MINOR(SCpnt->request.rq_dev)].start_sect;

and
}

if (rscsi_disks[dev].sector_size == 2048)
if((block & 3) || (SCpnt->request.nr_sectors & 3)) {
printk("sd.c:Bad block number requested");

And I'm wondering exactly how much really needs to be done to this to make
it work.

Thanks for any help you give,
-- Peter

-
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.altern.org/andrebalsa/doc/lkml-faq.html