Reattach/redetect allways connected umass device - is it possible ?

Bernd Walter ticso at cicely12.cicely.de
Thu Mar 24 03:08:01 PST 2005


On Wed, Mar 23, 2005 at 11:05:04PM -0500, John Baldwin wrote:
> 
> On Mar 23, 2005, at 9:00 PM, Matthew N. Dodd wrote:
> 
> >On Wed, 23 Mar 2005, Julian Elischer wrote:
> >>eject should imply a detach..
> >>i.e. I think your patch should call the detach code from the eject 
> >>code.
> >
> >Eject is for devices that support removable media.
> 
> So are flash memory sticks ejectable media from a slot in a laptop that 
> never goes away?  Seems like it should be an ejectable media to me. 
> *shrug*

Flash disks are just standard direct access disk drives with
exchangeable media.
You have the same kind of trouble with MO, ZIP or any other removeable
media devices.
The problem is neither the device nor cam.
It is GEOM that needs a trigger for rereading the new media.
I can't imagine any device related brokenness that a CAM disconnect,
which is a kernel internal thing, could work around.
And no - If I issue an eject I want the drive to eject the media and
nothing else, but since most flash drives have no motor eject this
command can't physically do what is expected anyway.
A CAM detach would be fine, but for general use - not for this case.

-- 
B.Walter                   BWCT                http://www.bwct.de
bernd at bwct.de                                  info at bwct.de



More information about the freebsd-mobile mailing list