[PVFS2-CVS]
commit by bradles in pvfs2/src/server: pvfs2-server.c pvfs2-server.h
CVS commit program
cvs at parl.clemson.edu
Mon May 17 16:48:27 EDT 2004
Update of /projects/cvsroot/pvfs2/src/server
In directory styx.parl.clemson.edu:/tmp/cvs-serv15693/server
Modified Files:
pvfs2-server.c pvfs2-server.h
Log Message:
Changing distributions to require initialization before use. Giving
distributions an additional hook/callback to be called once at registration
time for the distribution to allow it to register its parameters and set
parameter defaults as neccesary.
Index: pvfs2-server.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/server/pvfs2-server.c,v
diff -p -u -r1.151 -r1.152
--- pvfs2-server.c 7 May 2004 16:38:04 -0000 1.151
+++ pvfs2-server.c 17 May 2004 19:48:27 -0000 1.152
@@ -36,6 +36,7 @@
#include "mkspace.h"
#include "server-config.h"
#include "quicklist.h"
+#include "pint-dist-utils.h"
#include "pint-perf-counter.h"
#include "pint-event.h"
#include "id-generator.h"
@@ -501,6 +502,7 @@ static int server_setup_process_environm
/* server_initialize_subsystems()
*
* This:
+ * - initializes distribution subsystem
* - initializes encoding/decoding subsystem
* - initializes BMI
* - initializes Trove
@@ -523,6 +525,16 @@ static int server_initialize_subsystems(
struct filesystem_configuration_s *cur_fs;
TROVE_context_id trove_context = -1;
+ /* Initialize distributions */
+ ret = PINT_dist_initialize();
+ if (ret < 0)
+ {
+ gossip_err("Error initializing distribution interface.\n");
+ return (ret);
+ }
+ *server_status_flag |= SERVER_DIST_INIT;
+
+
ret = PINT_encode_initialize();
if (ret < 0)
{
Index: pvfs2-server.h
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/server/pvfs2-server.h,v
diff -p -u -r1.85 -r1.86
--- pvfs2-server.h 7 May 2004 16:38:04 -0000 1.85
+++ pvfs2-server.h 17 May 2004 19:48:27 -0000 1.86
@@ -76,6 +76,7 @@ typedef enum
SERVER_PERF_COUNTER_INIT = (1 << 13),
SERVER_EVENT_INIT = (1 << 14),
SERVER_JOB_TIME_MGR_INIT = (1 << 15),
+ SERVER_DIST_INIT = (1 << 16),
} PINT_server_status_flag;
/* struct PINT_server_lookup_op
More information about the PVFS2-CVS
mailing list