Re: cvs commit: src/sys/dev/usb umass.c

From: M. Warner Losh <>
Date: Wed, 28 Feb 2007 03:30:55 -0700 (MST)
In message: <>
            "Poul-Henning Kamp" <> writes:
: In message <>, "M. Warner Losh" writes
: :
: >: >  Create a new quirk READ_CAPACITY_OFFBY1 
: >: 
: >: A better idea would be to have scsi_da.c try to read the 
: >: last sector and chop it if it fails.
: >
: >Why is that a better idea?
: Because it will work automatically and not rely on us preventively
: adding the bogus devices to the kernel.
: Trivially testable quicks shouldn't have to be compiled into
: static lists.

Others have observed that the number of sectors on a disk should be
even.  Therefore if maxsectors returned is even, it implies an odd
number of sectors and should be adjusted.  That might be an even
easier path to follow...  I'm never sure when one can schedule
additional I/O inside of cam...

Received on Wed Feb 28 2007 - 10:31:35 UTC