Quirk for this?

Scott Long scottl at samsco.org
Mon Feb 26 08:50:27 UTC 2007


M. Warner Losh wrote:
> In message: <7579f7fb0702231017rdc246ebqeface91c9d5481e3 at mail.gmail.com>
>             "Matthew Jacob" <lydianconcepts at gmail.com> writes:
> : > The question is: Given that I know that the first USB/CF adapter
> : > always reports one too big, is there a way this can be fixed?
> : 
> : There are two problems here that I see:
> : 
> : a) The GEOM taste code cannot be overridden.
> : 
> : b) How do we accomodate/detect broken h/w?
> : 
> : I'm inclined to think that GEOM stuff cannot/should not be "fixed".
> : The second question is the harder one.
> : 
> : You personally can fix this for yourself by doing your own specialized
> : quirk matching and just adjusting the READ CAPACITY results
> : accordingly. We have to ask whether this particular breakage is both
> : widespread enough and the devices important enough to try and
> : generalize some solution for.
> 
> I took a look at Linux, and they have a quirk for this.  A bunch of
> cameras have this bug, as do iPods and a few media readers...
> 
> Warner

So is it an off-by-one issue for all of these devices, or do we need to
have a mechanism for encoding a variable fudge factor?  Secondly, is it
only a problem with USB devices?  Third, do we want only the
READ_CAPACITY that is done during probe+attach to be fudged, or do we
want to intercept every READ_CAPACITY attempt from every source and
fudge them all?

Scott



More information about the freebsd-scsi mailing list