[PVFS2-CVS] commit by neill in pvfs2/src/apps/karma: comm.c
CVS commit program
cvs at parl.clemson.edu
Thu May 20 14:27:47 EDT 2004
Update of /projects/cvsroot/pvfs2/src/apps/karma
In directory parlweb:/tmp/cvs-serv11755/src/apps/karma
Modified Files:
comm.c
Log Message:
- implement non-blocking operations for all sysint and mgmt operations
- refactor blocking operations in terms of non-blocking operations
- change all sysint credential arguments to credential references
- memory leaks, bug fixes, cleanups
NOTE: this is a non-blocking first draft, updates are sure to come
Index: comm.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/apps/karma/comm.c,v
diff -p -u -r1.25 -r1.26
--- comm.c 29 Apr 2004 13:53:55 -0000 1.25
+++ comm.c 20 May 2004 17:27:47 -0000 1.26
@@ -148,8 +148,7 @@ int gui_comm_setup(void)
-1);
}
- creds.uid = getuid();
- creds.gid = getgid();
+ PVFS_util_gen_credentials(&creds);
/* print message indicating what file system we are monitoring */
snprintf(msgbuf,
@@ -206,7 +205,7 @@ void gui_comm_set_active_fs(char *contac
cur_fsid = new_fsid;
ret = PVFS_mgmt_count_servers(cur_fsid,
- creds,
+ &creds,
PVFS_MGMT_IO_SERVER | PVFS_MGMT_META_SERVER,
&outcount);
if (ret < 0)
@@ -244,7 +243,7 @@ void gui_comm_set_active_fs(char *contac
malloc(outcount * sizeof(PVFS_BMI_addr_t));
internal_addr_ct = outcount;
ret = PVFS_mgmt_get_server_array(cur_fsid,
- creds,
+ &creds,
PVFS_MGMT_IO_SERVER|PVFS_MGMT_META_SERVER,
internal_addrs,
&outcount);
@@ -327,7 +326,7 @@ static int gui_comm_stats_collect(void)
assert(internal_addr_ct == internal_stat_ct);
ret = PVFS_mgmt_statfs_list(cur_fsid,
- creds,
+ &creds,
internal_stats,
internal_addrs,
internal_stat_ct,
@@ -346,7 +345,7 @@ static int gui_comm_stats_collect(void)
64,
"Server %s not responding.",
PVFS_mgmt_map_addr(cur_fsid,
- creds,
+ &creds,
internal_details->error[i].addr,
&dummy));
gui_message_new(msgbuf);
@@ -370,7 +369,7 @@ static int gui_comm_perf_collect(void)
#ifndef FAKE_PERF
ret = PVFS_mgmt_perf_mon_list(cur_fsid,
- creds,
+ &creds,
internal_perf,
internal_end_time_ms,
internal_addrs,
@@ -392,7 +391,7 @@ static int gui_comm_perf_collect(void)
64,
"Server %s not responding.",
PVFS_mgmt_map_addr(cur_fsid,
- creds,
+ &creds,
internal_details->error[i].addr,
&dummy));
gui_message_new(msgbuf);
More information about the PVFS2-CVS
mailing list