D27065: Fix inverted logic in IOKitStorage::isRemovable
Milian Wolff
noreply at phabricator.kde.org
Fri Jan 31 13:29:22 GMT 2020
mwolff created this revision.
Herald added a project: Frameworks.
Herald added a subscriber: kde-frameworks-devel.
mwolff requested review of this revision.
REVISION SUMMARY
Reading through the code, I realized that the isRemovable check
returned true when the kDADiskDescriptionDeviceInternalKey property
is set to true. But that sounds like the check needs to be inverted:
According to [1] e.g. a disk is non-removable when it is internal.
And kDADiskDescriptionDeviceInternalKey returns whether the disk
is internal, not external.
[1]: https://stackoverflow.com/questions/38499860/thunderbolt-drives-not-marked-as-ejectable-in-disk-arbitration-iokit-although-th#comment64407405_38499860
I do not own a device with IOKit platfor, so I cannot actually test
whether this patch is correct or not.
REPOSITORY
R245 Solid
BRANCH
master
REVISION DETAIL
https://phabricator.kde.org/D27065
AFFECTED FILES
src/solid/devices/backends/iokit/iokitstorage.cpp
To: mwolff
Cc: kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20200131/c38f18b9/attachment-0001.html>
More information about the Kde-frameworks-devel
mailing list