Summary: | Safely remove option should run also "eject" on mass storage devices | ||
---|---|---|---|
Product: | [Unmaintained] solid | Reporter: | Kristjan Ugrin <kristjan.ugrin> |
Component: | libsolid-hal | Assignee: | Kevin Ottens <ervin> |
Status: | RESOLVED UPSTREAM | ||
Severity: | wishlist | CC: | finex, peter.penz19 |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Kristjan Ugrin
2009-12-27 19:21:23 UTC
I've the same problem with all usb memory. I need to manually "eject /dev/sdX". The eject/umount command integrated in dolphin only umount the partition. For example some of my usb pendrive have a flashing light until I manually eject the device. Please check the output of "solid-hardware list nonportableinfo", if you don't have a "storage.requires_eject = true" for the corresponding drive then the bug you're experiencing is in HAL not informing us reliably that the eject command must be issued. Thanks: storage.requires_eject = false (bool) So it's hal issue. I've heard future kde will not use hal anymore, should we leave this as is (unfixed) and see if it is an issue again in 4.6? Does hal have some rules how to handle removable storage, so I could quickly fix it by writing a rule? The device is recognized as removable: storage.removable = true Well the point is that we (KDE) can't do anything about it that's a bug in HAL itself (so upstream). You could try to fill a bug for it at http://bugs.freedesktop.org but there's a chance for it to be ignored as it's more or less unmaintained. Know hal allows you to write fdi file to make rules like the one you need, but I'm not clear on all the details (it's been a long while since I wrote one). You should find out all the info you need in HAL's documentation I guess. Addon: I've figured how to force eject on my removable devices by adding a hal policy. The match might be too vague, but probably safe, since quite some range of portable player will complain about not ejecting them: --- <?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- SGML -*- --> <deviceinfo version="0.2"> <device> <match key="storage.removable" bool="true"> <merge key="storage.requires_eject" type="bool">true</merge> </match> </device> </deviceinfo> --- |