[8/13] Add support for ccw block devices.

Cornelia Huck cohuck at de.ibm.com
Mon Jun 27 01:45:38 PDT 2005


[8/13] Add support for ccw block devices.

ccw devices need to be considered for block devices.

 blockdev.c |    7 +++++++
 1 files changed, 7 insertions(+)

Index: hald/linux2/blockdev.c
===================================================================
RCS file: /cvs/hal/hal/hald/linux2/blockdev.c,v
retrieving revision 1.16
diff -u -r1.16 blockdev.c
--- hald/linux2/blockdev.c	29 Apr 2005 21:39:58 -0000	1.16
+++ hald/linux2/blockdev.c	23 Jun 2005 13:59:57 -0000
@@ -726,7 +726,14 @@
 					physdev_udi = udi_it;
 					hal_device_property_set_string (d, "storage.bus", "mmc");
 					break;
+				} else if (strcmp (bus, "ccw") == 0) {
+					physdev = d_it;
+					physdev_udi = udi_it;
+					is_hotpluggable = TRUE;
+					hal_device_property_set_string
+						(d, "storage.bus", "ccw");
 				}
+									
 			}
 
 			/* Go to parent */
_______________________________________________
hal mailing list
hal at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/hal



More information about the Hal mailing list