]> git.hungrycats.org Git - linux/commit
SCSI: Fix problems with non-power-of-two sector size discs
authorJames Bottomley <jejb@mulgrave.(none)>
Fri, 15 Oct 2004 04:46:27 +0000 (23:46 -0500)
committerJames Bottomley <jejb@titanic.il.steeleye.com>
Fri, 15 Oct 2004 04:46:27 +0000 (23:46 -0500)
commitc7014083c3ac229ebdaec31632d9c2d424092aa8
treef42411d2cbc8080271f00a0118297a1950fbef1a
parent3bee45fa9d6ec60dd98f89acdb2615e1356c10a3
SCSI: Fix problems with non-power-of-two sector size discs

We can't support them, but the system should disable them cleanly
and continue when they're detected (at the moment it
dumps a stack trace).

The fix (hack) is to set them to zero size and 512 byte
sectors.  This means they're still amenable to ioctls (like
to reformat them with a useful block size) but cannot
be read from or written to.

Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/scsicam.c
drivers/scsi/sd.c