[PVFS2-CVS]
commit by bradles in pvfs2/src/client/sysint: finalize.c
initialize.c
CVS commit program
cvs at parl.clemson.edu
Mon May 17 16:48:26 EDT 2004
Update of /projects/cvsroot/pvfs2/src/client/sysint
In directory styx.parl.clemson.edu:/tmp/cvs-serv15693/client/sysint
Modified Files:
finalize.c initialize.c
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: finalize.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/client/sysint/finalize.c,v
diff -p -u -r1.26 -r1.27
--- finalize.c 28 Apr 2004 13:54:49 -0000 1.26
+++ finalize.c 17 May 2004 19:48:26 -0000 1.27
@@ -12,6 +12,7 @@
#include "ncache.h"
#include "gen-locks.h"
#include "pint-bucket.h"
+#include "pint-dist-utils.h"
#include "dotconf.h"
#include "trove.h"
#include "server-config-mgr.h"
@@ -58,6 +59,8 @@ int PVFS_sys_finalize()
BMI_finalize();
PINT_encode_finalize();
+
+ PINT_dist_finalize();
PINT_release_pvfstab();
Index: initialize.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/client/sysint/initialize.c,v
diff -p -u -r1.82 -r1.83
--- initialize.c 28 Apr 2004 15:25:22 -0000 1.82
+++ initialize.c 17 May 2004 19:48:26 -0000 1.83
@@ -15,6 +15,7 @@
#include "ncache.h"
#include "pint-bucket.h"
#include "pvfs2-sysint.h"
+#include "pint-dist-utils.h"
#include "pint-sysint-utils.h"
#include "gen-locks.h"
#include "pint-servreq.h"
@@ -42,7 +43,8 @@ typedef enum
CLIENT_NCACHE_INIT = (1 << 6),
CLIENT_CONFIG_MGR_INIT = (1 << 7),
CLIENT_REQ_SCHED_INIT = (1 << 8),
- CLIENT_JOB_TIME_MGR_INIT = (1 << 9)
+ CLIENT_JOB_TIME_MGR_INIT = (1 << 9),
+ CLIENT_DIST_INIT = (1 << 10)
} PINT_client_status_flag;
/* PVFS_sys_initialize()
@@ -86,6 +88,14 @@ int PVFS_sys_initialize(int default_debu
gossip_enable_file(debug_file, "w");
}
+ /* Initialize the distribution subsystem */
+ ret = PINT_dist_initialize();
+ if (ret < 0)
+ {
+ gossip_lerr("Error initializing distributions.\n");
+ goto error_exit;
+ }
+
/* initlialize the protocol encoder */
ret = PINT_encode_initialize();
if (ret < 0)
@@ -246,6 +256,11 @@ int PVFS_sys_initialize(int default_debu
if (client_status_flag & CLIENT_ENCODER_INIT)
{
PINT_encode_finalize();
+ }
+
+ if (client_status_flag & CLIENT_DIST_INIT)
+ {
+ PINT_dist_finalize();
}
free(sm_p);
More information about the PVFS2-CVS
mailing list