This is the mail archive of the cluster-cvs@sourceware.org mailing list for the cluster.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

cluster: master - libccs: daemon logging config


Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=f4c6d690d77929c313fb0562f7b2f9da75b720e6
Commit:        f4c6d690d77929c313fb0562f7b2f9da75b720e6
Parent:        9dafa385dab9d04bf14843e83515a7b92a7198d5
Author:        David Teigland <teigland@redhat.com>
AuthorDate:    Fri Feb 20 12:34:44 2009 -0600
Committer:     Fabio M. Di Nitto <fdinitto@redhat.com>
CommitterDate: Wed Feb 25 11:23:57 2009 +0100

libccs: daemon logging config

<logging_subsys subsys="foo"/> changes to
<logging_daemon name="foo"/>

Signed-off-by: David Teigland <teigland@redhat.com>
---
 config/libs/libccsconfdb/extras.c |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/config/libs/libccsconfdb/extras.c b/config/libs/libccsconfdb/extras.c
index 2e5e694..3dd368a 100644
--- a/config/libs/libccsconfdb/extras.c
+++ b/config/libs/libccsconfdb/extras.c
@@ -280,11 +280,11 @@ static void read_onoff(int fd, char *path, int *on, int *off)
 }
 
 /* requires path buffer to be PATH_MAX */
-static void create_subsys_path(char *name, char *field, char *path)
+static void create_daemon_path(char *name, char *field, char *path)
 {
 	memset(path, 0, PATH_MAX);
 	snprintf(path, PATH_MAX,
-		 "/cluster/logging/logging_subsys[@subsys=\"%s\"]/%s",
+		 "/cluster/logging/logging_daemon[@name=\"%s\"]/%s",
 		 name, field);
 }
 
@@ -305,7 +305,7 @@ void ccs_read_logging(int fd, char *name, int *debug, int *mode,
 	/*
 	 * to_syslog 
 	 */
-	create_subsys_path(name, "to_syslog", path);
+	create_daemon_path(name, "to_syslog", path);
 
 	read_yesno(fd, "/cluster/logging/@to_syslog", &y, &n);
 	if (y)
@@ -322,7 +322,7 @@ void ccs_read_logging(int fd, char *name, int *debug, int *mode,
 	/*
 	 * to_logfile
 	 */
-	create_subsys_path(name, "to_logfile", path);
+	create_daemon_path(name, "to_logfile", path);
 
 	read_yesno(fd, "/cluster/logging/@to_logfile", &y, &n);
 	if (y)
@@ -339,7 +339,7 @@ void ccs_read_logging(int fd, char *name, int *debug, int *mode,
 	/*
 	 * syslog_facility
 	 */
-	create_subsys_path(name, "syslog_facility", path);
+	create_daemon_path(name, "syslog_facility", path);
 
 	read_string(fd, "/cluster/logging/@syslog_facility", string);
 
@@ -360,7 +360,7 @@ void ccs_read_logging(int fd, char *name, int *debug, int *mode,
 	/*
 	 * syslog_priority
 	 */
-	create_subsys_path(name, "syslog_priority", path);
+	create_daemon_path(name, "syslog_priority", path);
 
 	read_string(fd, "/cluster/logging/@syslog_priority", string);
 
@@ -381,7 +381,7 @@ void ccs_read_logging(int fd, char *name, int *debug, int *mode,
 	/*
 	 * logfile
 	 */
-	create_subsys_path(name, "logfile", path);
+	create_daemon_path(name, "logfile", path);
 
 	read_string(fd, "/cluster/logging/@logfile", string);
 
@@ -406,7 +406,7 @@ void ccs_read_logging(int fd, char *name, int *debug, int *mode,
 	 * debug
 	 * debug=on is a shortcut for logfile_priority=LOG_DEBUG
 	 */
-	create_subsys_path(name, "debug", path);
+	create_daemon_path(name, "debug", path);
 
 	read_onoff(fd, "/cluster/logging/@debug", &on, &off);
 	if (on)
@@ -426,7 +426,7 @@ void ccs_read_logging(int fd, char *name, int *debug, int *mode,
 	/*
 	 * logfile_priority
 	 */
-	create_subsys_path(name, "logfile_priority", path);
+	create_daemon_path(name, "logfile_priority", path);
 
 	read_string(fd, "/cluster/logging/@logfile_priority", string);
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]