hal/hald/linux/drive_id drive_id.c,1.2,1.3
David Zeuthen
david at freedesktop.org
Sun Aug 22 12:27:24 PDT 2004
- Previous message: hal/hald callout.c, 1.13, 1.14 hald.c, 1.11, 1.12 hald.h, 1.5,
1.6 logger.c, 1.5, 1.6 logger.h, 1.6, 1.7 osspec.h, 1.4, 1.5
- Next message: hal/tools/linux hal_dev.c,1.3,1.4 hal_hotplug.c,1.16,1.17
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvs/hal/hal/hald/linux/drive_id
In directory gabe:/tmp/cvs-serv2401/hald/linux/drive_id
Modified Files:
drive_id.c
Log Message:
2004-08-22 David Zeuthen <david at fubar.dk>
* hald/callout.c: Only invoke callouts if they have the .hal extension.
Export HALD_VERBOSE if the hald instance is started with verbose.
Add HALD_STARTUP resp. HALD_SHUTDOWN only if the callout is in response
to hald starting up/shutting down.
* hald/hald.c: Add an verbose option. Use the HALD_VERBOSE environment
variable. Postpone daemonization until we are done probing.
* hald/hald.h: Move hald_is_[verbose|initialising|is_shutting_down] here
* hald/linux/bus_device.c:
(bus_device_visit): We can now always assume we got a parent
* hald/linux/class_device.c:
(class_device_visit): We can now always assume we got a parent
* hald/linux/common.h:
* hald/linux/drive_id/drive_id.c:
* hald/linux/osspec.c: Complete rewrite of probing code; now we
construct a list of ''coldplug events'' and feed them to the
two new functions add_device() and rem_device(); this unifies
a few codepaths and it's much faster, cleaner and just yummier.
Also ensure that callouts are run sequentially.
* hald/logger.c:
(logger_enable),
(logger_disable): New functions
(logger_emit): Print time and don't print function name
* hald/logger.h: Add logger_[enable|disable].
* tools/fstab-sync.c:
(open_temp_fstab_file): Use /tmp for the temporary file
(fs_table_has_volume): Remove debug spew
(add_udi): Log a message to the syslog on success
(remove_udi): Log a message to the syslog on success
(clean): Log a message to the syslog on success
(main): Use HALD_VERBOSE. When invoked for the ''computer'' device
object on hald startup, automatically clean the fstab (but only if
using a managed keyword). Don't remove entries on hald
shutdown. In line with the osspec.c changes (sequential callouts)
we now get a fully sanitized /etc/fstab at hald startup, Yay!
* tools/linux/hal_dev.c: (main): Less syslog spamming
* tools/linux/hal_hotplug.c:
(wait_for_sysfs_info): Less syslog spamming
(main): Less syslog spamming
Index: drive_id.c
===================================================================
RCS file: /cvs/hal/hal/hald/linux/drive_id/drive_id.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- drive_id.c 1 Aug 2004 23:17:02 -0000 1.2
+++ drive_id.c 22 Aug 2004 19:27:22 -0000 1.3
@@ -49,7 +49,7 @@
#include "drive_id.h"
-#define DEBUG
+/*#define DEBUG*/
#ifdef DEBUG
#define dbg(format, arg...) \
do { \
- Previous message: hal/hald callout.c, 1.13, 1.14 hald.c, 1.11, 1.12 hald.h, 1.5,
1.6 logger.c, 1.5, 1.6 logger.h, 1.6, 1.7 osspec.h, 1.4, 1.5
- Next message: hal/tools/linux hal_dev.c,1.3,1.4 hal_hotplug.c,1.16,1.17
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the hal-commit
mailing list