| Summary: | Udisks2 backend doesn't detect if device is set as removable | ||
|---|---|---|---|
| Product: | [Unmaintained] solid | Reporter: | Tejas Guruswamy <masterpatricko> |
| Component: | libsolid-udisks2 | Assignee: | Lukáš Tinkl <lukas> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | cyberbeat |
| Priority: | NOR | ||
| Version First Reported In: | 4.11.1 | ||
| Target Milestone: | --- | ||
| Platform: | openSUSE | ||
| OS: | Linux | ||
| Latest Commit: | http://commits.kde.org/kdelibs/6241ec6f40881ec3a8f3ef4541d6d6953024a174 | Version Fixed/Implemented In: | 4.11.4 |
| Sentry Crash Report: | |||
|
Description
Tejas Guruswamy
2013-09-24 11:42:37 UTC
I have the same problem with my esata drive, it seems, at least here is missing something: http://quickgit.kde.org/?p=kdelibs.git&a=blob&h=e38215403f4d923862c184abd9e9684691c25762&hb=5720d02a52b7db4322b6aa823292d345967b6125&f=solid%2Fsolid%2Fbackends%2Fudisks2%2Fudisksstoragedrive.cpp in the corresponding udisks1 file the "DeviceIsSystemInternal" property is tested I have fix for this:
in kdelibs in file "solid/solid/backends/udisks2/udisksstoragedrive.cpp"
change line 51 to
return _bus == Solid::StorageDrive::Usb || _bus == Solid::StorageDrive::Ieee1394 || (m_udevDevice.deviceProperty("UDISKS_SYSTEM").isValid() && !m_udevDevice.deviceProperty("UDISKS_SYSTEM").toBool());
Please apply my fix for the next kde-4.11 maintenance release.
Great, thanks for the patch, I will test it and commit Have you tested this fix on your machine? yes, I tested, and it works Git commit 6241ec6f40881ec3a8f3ef4541d6d6953024a174 by Lukáš Tinkl. Committed on 27/11/2013 at 19:37. Pushed by lukas into branch 'KDE/4.11'. detect removable devices more reliably with udisks2 backend M +2 -1 solid/solid/backends/udisks2/udisksstoragedrive.cpp http://commits.kde.org/kdelibs/6241ec6f40881ec3a8f3ef4541d6d6953024a174 |