Support for xD cards

Maxim Levitsky maximlevitsky at gmail.com
Sat Jun 12 06:01:24 PDT 2010


Hi,

I need to make devicekit aware of xD cards.
I wrote recently a driver for xD card reader, and it is accepted
upstream.


I need this rule:

ACTION!="add|change", GOTO="udisks_sm_end"
KERNEL=="smblk*", ATTRS{media_type}=="smartmedia", ENV{UDISKS_PRESENTATION_ICON_NAME}="gnome-dev-media-sm"
KERNEL=="smblk*", ATTRS{media_type}=="xd", ENV{UDISKS_PRESENTATION_ICON_NAME}="gnome-dev-media-xd"
KERNEL=="smblk*", ENV{UDISKS_PRESENTATION_NOPOLICY}="0"
LABEl="udisks_sm_end"


Doesn't matter if this is separate file or not.
Basically I want to set icon, and UDISKS_PRESENTATION_NOPOLICY.

In addition to that I need this hackish patch for udisks
Proper solution is to clean up whole thing out of hardcoded stuff.
When I get more free time I will do that.


diff --git a/src/device.c b/src/device.c
index 12cab7c..e21a426 100644
--- a/src/device.c
+++ b/src/device.c
@@ -2658,6 +2658,11 @@ update_drive_properties_from_sysfs (Device *device)
               break;
 
             }
+          else if (strcmp(subsystem, "mtd") == 0)
+            {
+                connection_interface = "sdio";
+
+            }
           else if (strcmp (subsystem, "mmc") == 0)
             {




Best regards,
	Maxim Levitsky



More information about the devkit-devel mailing list