[PVFS2-CVS] commit by rbross in pvfs2/src/apps/karma: comm.c
CVS commit program
cvs at parl.clemson.edu
Sun Feb 15 00:03:51 EST 2004
Update of /projects/cvsroot/pvfs2/src/apps/karma
In directory parlweb:/tmp/cvs-serv20516/src/apps/karma
Modified Files:
comm.c
Log Message:
Added PVFS_EPARTIAL (for now anyway; would like a little better name!).
Added error_array to PVFS_mgmt_statfs_list(); dropped in NULL placeholder in
all calls to it.
Added allocation of error array in karma/comm.c to hold particular errors.
Note: none of this is actually *used* yet.
Index: comm.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/apps/karma/comm.c,v
diff -p -u -r1.11 -r1.12
--- comm.c 11 Feb 2004 16:04:59 -0000 1.11
+++ comm.c 15 Feb 2004 05:03:51 -0000 1.12
@@ -17,6 +17,7 @@
static pvfs_mntlist mnt = {0, NULL};
static struct PVFS_mgmt_server_stat *visible_stats = NULL;
static struct PVFS_mgmt_server_stat *internal_stats = NULL;
+static int *internal_errors = NULL;
static int visible_stat_ct;
static int internal_stat_ct;
@@ -195,6 +196,7 @@ void gui_comm_set_active_fs(char *contac
else if (internal_stats != NULL) {
/* free all our dynamically allocated memory for resizing */
free(internal_stats);
+ free(internal_errors);
free(internal_perf[0]);
free(internal_perf);
free(internal_perf_ids);
@@ -203,6 +205,7 @@ void gui_comm_set_active_fs(char *contac
internal_stats = (struct PVFS_mgmt_server_stat *)
malloc(outcount * sizeof(struct PVFS_mgmt_server_stat));
+ internal_errors = (int *) malloc(outcount * sizeof(int));
internal_stat_ct = outcount;
/* save addresses of servers */
@@ -296,6 +299,7 @@ static int gui_comm_stats_collect(void)
creds,
internal_stats,
internal_addrs,
+ internal_errors,
internal_stat_ct);
if (ret < 0)
{
More information about the PVFS2-CVS
mailing list