hal ChangeLog,1.241,1.242

David Zeuthen david at freedesktop.org
Sun Aug 15 11:54:59 PDT 2004


Update of /cvs/hal/hal
In directory pdx:/tmp/cvs-serv28976

Modified Files:
	ChangeLog 
Log Message:
2004-08-15  David Zeuthen  <david at fubar.dk>

	Sends messages from hotplug and device naming helpers via a local
	socket. Reorder the hotplug events we receive in hald according to
	SEQNUM and use a semaphor pattern to ensure that we don't process
	a hotplug event before the device created in effect to the
	previous event is completely processed (e.g.  add/remove callouts
	have run).

	* hald/Makefile.am: Remove scsi_host_class_device.c and add
	scsi_bus_device.c, hald_helper.h.

	* hald/device_info.c: 
	(handle_match): Comment out debug
	(scan_fdi_files): Comment out debug

	* hald/linux/block_class_device.c: 
	(block_class_visit): Return the HalDevice* object
	(block_class_pre_process): Use 'scsi' instead of 'scsi_device'
	(block_class_compute_udi): -do-
	(mtab_handle_volume): Comment out debug
	(etc_mtab_process_all_block_devices): Comment out debug

	* hald/linux/bus_device.c:
	(bus_device_visit): Return the HalDevice* object

	* hald/linux/bus_device.h: Make the visit method return the HalDevice
	object for tracking purposes

	* hald/linux/class_device.c: 
	(class_device_visit): Return the HalDevice* object
	(class_device_got_sysdevice): Comment out debug

	* hald/linux/class_device.h: Make the visit method return the HalDevice
	object for tracking purposes

	* hald/linux/common.c:
	(rename_and_merge): Comment out debug
	(class_device_get_device_file): Make debug statement more specific

	* hald/linux/net_class_device.c:
	(net_class_compute_udi): Comment out debug
	(net_class_udev_event): New function to ignore the udev event (duh)

	* hald/linux/osspec.c: Remove the ClassDeviceHandler scsi_device_
	class_device in favour of the BusDeviceHandler scsi_bus_device
	(visit_class_device): Return the HalDevice* object
	(visit_device): Return the HalDevice* object
	(osspec_init): Listen for datagrams on a local socket from hal.dev
	and hal.hotplug
	(remove_device): Return the HalDevice* object
	(remove_class_device): Return the HalDevice* object
	(handle_hotplug): Removed
	(handle_device_event): Removed
	(osspec_filter_function): Is empty now. We got our information via
	a local socket now
	(reenable_hotplug_proc): New function
	(hald_helper_hotplug): New function
	(hald_helper_device_node): New function
	(hald_helper_hotplug_process_queue): New function
	(hotplug_sem_up): New function 
	(hotplug_sem_down): New function
	(hald_helper_first_hotplug_event): New function
	(hald_helper_data): New function

	* hald/linux/hald_helper.h: New file
	
	* hald/linux/scsi_bus_device.c: New file

	* hald/linux/scsi_device_class_device.c: Removed

	* hald/linux/scsi_generic_class_device.c:
	(scsi_generic_get_device_file_target): New function. Merge the
	device file information to scsi.generic_device instead

	* tools/device-manager/Const.py.in: s/scsi_device/scsi/

	* tools/linux/Makefile.am: Don't link with D-BUS

	* tools/linux/hal_dev.c:
	(get_sysfs_mnt_path): Removed
	(main): Send the message via a local socket instead

	* tools/linux/hal_hotplug.c:
	(main): Send the message via a local socket instead



Index: ChangeLog
===================================================================
RCS file: /cvs/hal/hal/ChangeLog,v
retrieving revision 1.241
retrieving revision 1.242
diff -u -d -r1.241 -r1.242
--- ChangeLog	13 Aug 2004 12:53:16 -0000	1.241
+++ ChangeLog	15 Aug 2004 18:54:56 -0000	1.242
@@ -1,3 +1,89 @@
+2004-08-15  David Zeuthen  <david at fubar.dk>
+
+	Sends messages from hotplug and device naming helpers via a local
+	socket. Reorder the hotplug events we receive in hald according to
+	SEQNUM and use a semaphor pattern to ensure that we don't process
+	a hotplug event before the device created in effect to the
+	previous event is completely processed (e.g.  add/remove callouts
+	have run).
+
+	* hald/Makefile.am: Remove scsi_host_class_device.c and add
+	scsi_bus_device.c, hald_helper.h.
+
+	* hald/device_info.c: 
+	(handle_match): Comment out debug
+	(scan_fdi_files): Comment out debug
+
+	* hald/linux/block_class_device.c: 
+	(block_class_visit): Return the HalDevice* object
+	(block_class_pre_process): Use 'scsi' instead of 'scsi_device'
+	(block_class_compute_udi): -do-
+	(mtab_handle_volume): Comment out debug
+	(etc_mtab_process_all_block_devices): Comment out debug
+
+	* hald/linux/bus_device.c:
+	(bus_device_visit): Return the HalDevice* object
+
+	* hald/linux/bus_device.h: Make the visit method return the HalDevice
+	object for tracking purposes
+
+	* hald/linux/class_device.c: 
+	(class_device_visit): Return the HalDevice* object
+	(class_device_got_sysdevice): Comment out debug
+
+	* hald/linux/class_device.h: Make the visit method return the HalDevice
+	object for tracking purposes
+
+	* hald/linux/common.c:
+	(rename_and_merge): Comment out debug
+	(class_device_get_device_file): Make debug statement more specific
+
+	* hald/linux/net_class_device.c:
+	(net_class_compute_udi): Comment out debug
+	(net_class_udev_event): New function to ignore the udev event (duh)
+
+	* hald/linux/osspec.c: Remove the ClassDeviceHandler scsi_device_
+	class_device in favour of the BusDeviceHandler scsi_bus_device
+	(visit_class_device): Return the HalDevice* object
+	(visit_device): Return the HalDevice* object
+	(osspec_init): Listen for datagrams on a local socket from hal.dev
+	and hal.hotplug
+	(remove_device): Return the HalDevice* object
+	(remove_class_device): Return the HalDevice* object
+	(handle_hotplug): Removed
+	(handle_device_event): Removed
+	(osspec_filter_function): Is empty now. We got our information via
+	a local socket now
+	(reenable_hotplug_proc): New function
+	(hald_helper_hotplug): New function
+	(hald_helper_device_node): New function
+	(hald_helper_hotplug_process_queue): New function
+	(hotplug_sem_up): New function 
+	(hotplug_sem_down): New function
+	(hald_helper_first_hotplug_event): New function
+	(hald_helper_data): New function
+
+	* hald/linux/hald_helper.h: New file
+	
+	* hald/linux/scsi_bus_device.c: New file
+
+	* hald/linux/scsi_device_class_device.c: Removed
+
+	* hald/linux/scsi_generic_class_device.c:
+	(scsi_generic_get_device_file_target): New function. Merge the
+	device file information to scsi.generic_device instead
+
+	* tools/device-manager/Const.py.in: s/scsi_device/scsi/
+
+	* tools/linux/Makefile.am: Don't link with D-BUS
+
+	* tools/linux/hal_dev.c:
+	(get_sysfs_mnt_path): Removed
+	(main): Send the message via a local socket instead
+
+	* tools/linux/hal_hotplug.c:
+	(main): Send the message via a local socket instead
+
 2004-08-13  David Zeuthen  <david at fubar.dk>
 
 	* tools/fstab-sync.c: All debug statements now prints the pid




More information about the hal-commit mailing list