Subject: CVS commit: src/sys/dev/scsipi
To: None <source-changes@NetBSD.org>
From: ITOH Yasufumi <itohy@netbsd.org>
List: source-changes
Date: 11/26/2006 05:01:09
Module Name:	src
Committed By:	itohy
Date:		Sun Nov 26 05:01:09 UTC 2006

Modified Files:
	src/sys/dev/scsipi: scsipi_base.c scsipiconf.h sd.c

Log Message:
If the block size reported by Read Capacity looks valid, just use it.
Use Request Sense only if Read Capacity succeeded and did not return
valid block size.
Discussed on tech-kern.
Fix the easier part of NetBSD PR kern/26537.
(The harder part is the device hangs on large (>= 8KB) transfer.
Possibly umass BBB problem?)

Remove scsipi_size() and scsipi_validate_secsize() from scsipi_base.c
and add their functions to sd.c since they are used only by sd.c.

Use SCSI term `block' instead of `sector' where applicable.


To generate a diff of this commit:
cvs rdiff -r1.141 -r1.142 src/sys/dev/scsipi/scsipi_base.c
cvs rdiff -r1.107 -r1.108 src/sys/dev/scsipi/scsipiconf.h
cvs rdiff -r1.255 -r1.256 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.