hal/hald/linux block_class_device.c,1.39,1.40

David Zeuthen david at freedesktop.org
Thu Jul 15 14:43:18 PDT 2004


Update of /cvs/hal/hal/hald/linux
In directory pdx:/tmp/cvs-serv26968/hald/linux

Modified Files:
	block_class_device.c 
Log Message:
2004-07-15  David Zeuthen  <david at fubar.dk>

	Patch from Sjoerd Simons <sjoerd at luon.net>

	* hald/linux/block_class_device.c (block_class_pre_process): 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 :)



Index: block_class_device.c
===================================================================
RCS file: /cvs/hal/hal/hald/linux/block_class_device.c,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -d -r1.39 -r1.40
--- block_class_device.c	8 Jul 2004 17:12:05 -0000	1.39
+++ block_class_device.c	15 Jul 2004 21:43:15 -0000	1.40
@@ -1109,6 +1109,10 @@
 
 			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");
 			}
 
 			if (strcmp (bus, "usb") == 0) {




More information about the hal-commit mailing list