hal/tools/linux hal_hotplug.c,1.25,1.26
David Zeuthen
david at freedesktop.org
Mon Feb 28 11:43:31 PST 2005
Update of /cvs/hal/hal/tools/linux
In directory gabe:/tmp/cvs-serv31423/tools/linux
Modified Files:
hal_hotplug.c
Log Message:
2005-02-28 David Zeuthen <davidz at redhat.com>
* tools/linux/hal_hotplug.c (main): Use "hal.hotplug" instead of
"hal.hotplug2" for syslog. Don't write a message for every entry.
* hald/linux2/probing/probe-volume.c (main): Only probe for fs on
optical disc if there is indeed data on the disc
* hald/linux2/probing/probe-storage.c (main): Fix up debug outputs;
don't read fs on cdrom's, only check if there is a disc. Don't use
O_NONBLOCK on non-cdrom's.
* hald/linux2/classdev.c (add_classdev_probing_helper_done): Handle
that HalDevice object is already unreffed
* hald/linux2/blockdev.c (add_blockdev_probing_helper_done): Handle
that HalDevice object is already unreffed
(block_rescan_storage_done): -do-
* hald/util.h (struct HalHelperData_s): Add already_issued_kill field
* hald/util.c (hal_util_terminate_helper): Don't kill helpers twice
and don't callback more than once
(helper_child_timeout): Don't callback more than once
(helper_device_object_finalized): Finalized; being called when
a HalDevice object is finalized; use this as hint to terminate
the helper
(helper_child_exited): Remove the weak reference to the HalDevice
object
(hal_util_helper_invoke): Create a weak reference to the HalDevice
object so we get a callback when it's finalized
* hald/hald.c (main): Bah, put LIBEXECDIR at the end so we get
the local helpers when running via run-hald.sh
Index: hal_hotplug.c
===================================================================
RCS file: /cvs/hal/hal/tools/linux/hal_hotplug.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -d -r1.25 -r1.26
--- hal_hotplug.c 18 Jan 2005 19:48:13 -0000 1.25
+++ hal_hotplug.c 28 Feb 2005 19:43:29 -0000 1.26
@@ -117,10 +117,10 @@
if (argc != 2)
return 1;
- openlog ("hal.hotplug2", LOG_PID, LOG_USER);
+ openlog ("hal.hotplug", LOG_PID, LOG_USER);
- syslog (LOG_INFO, "ACTION=%s SUBSYS=%s SEQNUM=%s DEVPATH=%s PHYSDEVPATH=%s",
- getenv ("ACTION"), argv[1], getenv ("SEQNUM"), getenv ("DEVPATH"), getenv ("PHYSDEVPATH"));
+ /*syslog (LOG_INFO, "ACTION=%s SUBSYS=%s SEQNUM=%s DEVPATH=%s PHYSDEVPATH=%s",
+ getenv ("ACTION"), argv[1], getenv ("SEQNUM"), getenv ("DEVPATH"), getenv ("PHYSDEVPATH"));*/
if (get_sysfs_mnt_path() != 0) {
syslog (LOG_ERR, "could not get mountpoint for sysfs");
More information about the hal-commit
mailing list