[patch] physical device detection for scsi devices
Sjoerd Simons
sjoerd at luon.net
Thu Jul 15 13:13:09 PDT 2004
Hi,
It seems there was some code missing for the detection of the physical device
for scsi devices. Attached patch fixes this. Causing the new gnome-vfs patch
to work properly on my workstation :)
Sjoerd
--
Gravity is a myth, the Earth sucks.
-------------- next part --------------
Index: hald/linux/block_class_device.c
===================================================================
RCS file: /cvs/hal/hal/hald/linux/block_class_device.c,v
retrieving revision 1.39
diff -u -r1.39 block_class_device.c
--- hald/linux/block_class_device.c 8 Jul 2004 17:12:05 -0000 1.39
+++ hald/linux/block_class_device.c 15 Jul 2004 20:06:15 -0000
@@ -1109,6 +1109,11 @@
if (strcmp (bus, "scsi_device") == 0) {
scsidev = d_it;
+ physdev = d_it;
+ physdev_udi = udi_it;
+ hal_device_property_set_string (
+ stordev, "storage.bus", "scsi");
+ break;
}
if (strcmp (bus, "usb") == 0) {
-------------- next part --------------
_______________________________________________
hal mailing list
hal at freedesktop.org
http://freedesktop.org/mailman/listinfo/hal
More information about the Hal
mailing list