Subject: CVS commit: src/sys/dev/scsipi
To: None <source-changes@NetBSD.org>
From: Steve Woodford <scw@netbsd.org>
List: source-changes
Date: 10/09/2006 21:29:14
Module Name: src
Committed By: scw
Date: Mon Oct 9 21:29:14 UTC 2006
Modified Files:
src/sys/dev/scsipi: scsipi_base.c scsipiconf.h sd.c
Log Message:
Some removable umass(4) devices don't respond to mode sense page 6, or
simply return zero for logical block size. In either case, use the sector
length reported by READ_CAPACITY instead of defaulting to 512 bytes.
This partially addresses the problems reported in PR port-i386/34707 and
PR kern/34737. Namely the incorrectly reported drive geometry and the
'hanging' issue.
However, since the device in question reports 2048-byte physical sectors
it will remain unusable until DEV_BSIZE is banished.
To generate a diff of this commit:
cvs rdiff -r1.137 -r1.138 src/sys/dev/scsipi/scsipi_base.c
cvs rdiff -r1.103 -r1.104 src/sys/dev/scsipi/scsipiconf.h
cvs rdiff -r1.250 -r1.251 src/sys/dev/scsipi/sd.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.