Subject: Re: umass woe: sd0(umass0:0:0): readonly device & drive offline
To: None <tech-kern@netbsd.org>
From: Michael van Elst <mlelstv@serpens.de>
List: tech-kern
Date: 11/14/2005 09:53:50
feyrer@cs.stevens.edu (Hubert Feyrer) writes:

> 	http://www.feyrer.de/Misc/usb-debug-xdg328-2.txt

INQUIRY                       good
TEST UNIT READY               failed
REQUEST SENSE                 good    Unit Attention: Not-Ready to Ready
TEST UNIT READY               good
PREVENT ALLOW MEDIUM REMOVAL  failed
REQUEST SENSE                 good    Illegal Request, Invalid field
PREVENT ALLOW MEDIUM REMOVAL  good

The first PREVENT ALLOW tries to lock the medium (SPAMR_PREVENT_DT),
the second one allows it again. This is done in the error path of sdopen()
in case the first command did actually lock the medium but still failed
for some other reason.

Next step is to reinvent the PQUIRK_NODOORLOCK, check kern/23875
for details.

-- 
-- 
                                Michael van Elst
Internet: mlelstv@serpens.de
                                "A potential Snark may lurk in every tree."