[PATCH] USB mass storage unbind
Couriousous
couriousous at mandriva.org
Thu Jul 26 14:19:20 PDT 2007
Hello
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".
Since this is a special eject case, the following rule must be added for usb
flash drives:
<merge key="storage.requires_eject" type="bool">true</merge>
This patch is not really tested since I've only one usb mass storage device
and hub.
Regards,
Couriousous
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hal-usbeject.patch
Type: text/x-diff
Size: 1650 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20070726/1dc52c4c/attachment.patch
More information about the hal
mailing list