hal/tools fstab-sync.c,1.24,1.25
David Zeuthen
david at freedesktop.org
Fri Oct 15 13:53:47 PDT 2004
Update of /cvs/hal/hal/tools
In directory gabe:/tmp/cvs-serv20208/tools
Modified Files:
fstab-sync.c
Log Message:
2004-10-15 David Zeuthen <davidz at redhat.com>
* tools/fstab-sync.c (add_udi): Use the name of the special device
file instead of 'foo' when writing to the syslog
Index: fstab-sync.c
===================================================================
RCS file: /cvs/hal/hal/tools/fstab-sync.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- fstab-sync.c 15 Oct 2004 00:45:52 -0000 1.24
+++ fstab-sync.c 15 Oct 2004 20:53:45 -0000 1.25
@@ -1322,6 +1322,7 @@
char *dir = NULL;
char *last_slash;
char *mount_point;
+ char *device_file;
dir = strdup (_PATH_FSTAB);
last_slash = strrchr (dir, '/');
@@ -1368,11 +1369,15 @@
if (!create_mount_point_for_volume (mount_point))
goto error;
+
+ device_file = hal_device_get_property_string (hal_context, udi, "block.device");
fstab_update_debug (_("%d: added mount point '%s' for device '%s'\n"),
- pid, mount_point, "foo");
+ pid, mount_point, device_file);
syslog (LOG_INFO, _("added mount point %s for %s"),
- mount_point, "foo");
+ mount_point, device_file);
+
+ hal_free_string (device_file);
close (fd);
More information about the hal-commit
mailing list