Bug 308552 - Olympus xD card detected as non-removable drive by Device Notifier
Summary: Olympus xD card detected as non-removable drive by Device Notifier
Status: RESOLVED INTENTIONAL
Alias: None
Product: solid
Classification: Unmaintained
Component: libsolid-udisks (other bugs)
Version First Reported In: 4.9.2
Platform: Ubuntu Linux
: NOR minor
Target Milestone: ---
Assignee: Lukáš Tinkl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-17 13:30 UTC by Donatas Glodenis
Modified: 2012-10-18 16:40 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Output of commands solid-hardware list and udisks --dump (while xd card is inserted) (24.63 KB, text/plain)
2012-10-18 10:20 UTC, Donatas Glodenis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Donatas Glodenis 2012-10-17 13:30:53 UTC
Card from my Olympus Camera, Olympus xD-Picture card, is detected as a non-removable media by Device Notiefier. 

Here is what the dmesg reports about the card: 

[65195.808066] r852: detected xD writeable card in slot
[65196.112076] NAND device: Manufacturer ID: 0x98, Chip ID: 0xdc (Toshiba xD 512MiB 3,3V)
[65196.413772] sm_ftl: Found 512 MiB xD/SmartMedia FTL on mtd0

I have the device notifier configured to show only the removable media, so the xD card is not displayed by it. It is displayed only when I reconfigure it to show the non-removable media as well. 

It might give an impression to users that the card is not recognized (which used to be the case a few years ago).

I also remember some time ago the card was recognized as removable media (that was when I found out it already had a linux driver) but later on the device notifier stopped detecting it, and I only discovered the problem after probing deeper.
Comment 1 Lukáš Tinkl 2012-10-18 09:51:15 UTC
Can you please provide the output of the following:

$ solid-hardware list

$ udisks --dump
Comment 2 Donatas Glodenis 2012-10-18 10:20:39 UTC
Created attachment 74627 [details]
Output of commands solid-hardware list and udisks --dump (while xd card is inserted)
Comment 3 Donatas Glodenis 2012-10-18 10:38:21 UTC
I should also add that the card does show up in Dolphin sidebar... So it is possible for a non-technical user to find it, although not in the place where one expects it at first.
Comment 4 Lukáš Tinkl 2012-10-18 13:00:29 UTC
So, the bug is definitely in udisks or even lower in the corresponding kernel driver. The problem is that udisks itself doesn't even know about xD cards (http://udisks.freedesktop.org/docs/latest/gdbus-org.freedesktop.UDisks2.Drive.html#gdbus-property-org-freedesktop-UDisks2-Drive.MediaCompatibility) and also marks the drive as non-removable; see the file you attached, it contains "removable :0" for /org/freedesktop/UDisks/devices/smblka1 and empty MediaCompat key


Please report this bug to upstream udisks bugzilla at https://bugs.freedesktop.org/enter_bug.cgi?product=udisks
Comment 5 Donatas Glodenis 2012-10-18 16:40:51 UTC
Thank you for the analysis of the problem. I have reported the bug, here it is: https://bugs.freedesktop.org/show_bug.cgi?id=56151