[PATCH] USB mass storage unbind

Artem Kachitchkine Artem.Kachitchkin at Sun.COM
Thu Jul 26 15:54:50 PDT 2007


> Here is a little patch which implement the same behavior as MS Windows when 
> you "Safely remove" an usb mass-storage: switch-off the device.
> 
> The way to do it on linux is to unbind the device from the usb driver (at 
> least here it works), so I've hacked a patch on hal-storage-eject to unbind 
> it when it's "ejected". 

I think "eject" is a subset of "safe removal", but not the other way around, 
which is what you seem to be proposing. Not being able to do anything with the 
device after eject (remount, reformat, etc)  breaks user expectations. IMO "safe 
removal" is a separate operation that, if implemented, would require a 
distinctly separate HAL method and UI element.

-Artem


More information about the hal mailing list