hal/hald/linux2 blockdev.c,1.28,1.29
Danny Kukawka
dkukawka at freedesktop.org
Fri Jan 6 10:41:25 PST 2006
Update of /cvs/hal/hal/hald/linux2
In directory gabe:/tmp/cvs-serv15537/hald/linux2
Modified Files:
blockdev.c
Log Message:
2006-01-06 Danny Kukawka <danny.kukawka at web.de>
* hald/linux2/blockdev.c: (hotplug_event_begin_add_blockdev):
Set 'storage.drive_type' to 'disk' for new TYPE_RBC devices
(e.g. FireWire Disks) from kernel >= 2.6.14
Index: blockdev.c
===================================================================
RCS file: /cvs/hal/hal/hald/linux2/blockdev.c,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- blockdev.c 8 Dec 2005 19:03:02 -0000 1.28
+++ blockdev.c 6 Jan 2006 18:41:23 -0000 1.29
@@ -807,7 +807,11 @@
/* These magic values are documented in the kernel source */
switch (type) {
- case 0: /* Disk */
+ case 0: /* Disk */
+ case 14: /* TYPE_RBC (Reduced Block Commands) from kernel >= 2.6.14
+ * Simple Direct Access Device, set it to disk (this should be
+ * Firewire Disks), for more see kernel code and comments
+ */
hal_device_property_set_string (d, "storage.drive_type", "disk");
break;
More information about the hal-commit
mailing list