Subject: Re: umass woe: sd0(umass0:0:0): readonly device & drive offline
To: Manuel Bouyer <email@example.com>
From: Hubert Feyrer <firstname.lastname@example.org>
Date: 11/18/2005 22:16:35
On Fri, 18 Nov 2005, Manuel Bouyer wrote:
> However, in this case, if I remember properly (I don't have the whole thread
> available in my mailbox) this specific device replies with a "illegal field
> in CBD" sense code. With this error code it's clear that the device doesn't
> supports it, and we can safely ignore the error (and add a flag in the
> softc to not keep trying lock/unlock door for this device).
Where would that error be identified and ignored - in scsipi_prevent(), or
in the functions calling it?
I'm currently poking around in sd.c, and would appreciate some more hints
here, as I'm totally unfamiliar with the code. Where is the sense code you
mention stored, and how is it set?