LVM2/daemons/clogd clogd.c cluster.c functions ...
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: jbrassow at sourceware.org 2009-04-21 19:16:22
Modified files:
daemons/clogd : clogd.c cluster.c functions.c functions.h
Log message:
- Updating cluster log with latest code changes/bug fixes before altering to new kernel structures.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/daemons/clogd/clogd.c.diff?cvsroot=lvm2&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/daemons/clogd/cluster.c.diff?cvsroot=lvm2&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/daemons/clogd/functions.c.diff?cvsroot=lvm2&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/daemons/clogd/functions.h.diff?cvsroot=lvm2&r1=1.1&r2=1.2
daemons/clogd/clogd.c +0 -18
@@ -31,7 +31,6 @@static void daemonize (void );static void init_all (void );static void cleanup_all (void ); -static void set_priority (void );int main (int argc,char *argv[]) {
@@ -42,8 +41,6 @@/* Parent can now exit, we're ready to handle requests */ kill (getppid (),SIGTERM ); -/* set_priority(); -- let's try to do w/o this */ -LOG_PRINT ("Starting clogd:" );LOG_PRINT (" Built: " __DATE__" " __TIME__"\n" );LOG_DBG (" Compiled with debugging." );
@@ -266,18 +263,3 @@cleanup_local ();cleanup_cluster (); } - -static void set_priority (void ) -{ -struct sched_param sched_param; -int res; - - res =sched_get_priority_max (SCHED_RR ); -if (res !=-1 ) { - sched_param.sched_priority = res; - res =sched_setscheduler (0 ,SCHED_RR , &sched_param); - } - -if (res ==-1 ) -LOG_ERROR ("Unable to set SCHED_RR priority." ); -}
daemons/clogd/cluster.c +181 -85
494 lines not on this page · raw message
daemons/clogd/functions.c +84 -8
194 lines not on this page · raw message
daemons/clogd/functions.h +1 -1
@@ -10,7 +10,7 @@int cluster_postsuspend (char *);int do_request (struct clog_tfr *tfr,int server); -int push_state (const char *uuid,const char *which,char **buf); +int push_state (const char *uuid,const char *which,char **buf,uint32_t debug_who);int pull_state (const char *uuid,const char *which,char *buf,int size);int log_get_state (struct clog_tfr *tfr);