[PVFS2-CVS] commit by neill in pvfs2/src/apps/vis: pvfs2-vis.c

CVS commit program cvs at parl.clemson.edu
Thu May 20 14:27:48 EDT 2004


Update of /projects/cvsroot/pvfs2/src/apps/vis
In directory parlweb:/tmp/cvs-serv11755/src/apps/vis

Modified Files:
	pvfs2-vis.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: pvfs2-vis.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/apps/vis/pvfs2-vis.c,v
diff -p -u -r1.12 -r1.13
--- pvfs2-vis.c	28 Apr 2004 20:10:59 -0000	1.12
+++ pvfs2-vis.c	20 May 2004 17:27:48 -0000	1.13
@@ -109,8 +109,8 @@ int pvfs2_vis_start(char* path, int upda
     creds.gid = getgid();
 
     /* count how many I/O servers we have */
-    ret = PVFS_mgmt_count_servers(cur_fs, creds, PVFS_MGMT_IO_SERVER,
-	&io_server_count);
+    ret = PVFS_mgmt_count_servers(cur_fs, &creds, PVFS_MGMT_IO_SERVER,
+                                  &io_server_count);
     if(ret < 0)
     {
 	return(ret);
@@ -157,7 +157,7 @@ int pvfs2_vis_start(char* path, int upda
 	return -PVFS_ENOMEM;
     }
     ret = PVFS_mgmt_get_server_array(cur_fs,
-				     creds,
+				     &creds,
 				     PVFS_MGMT_IO_SERVER,
 				     addr_array,
 				     &io_server_count);
@@ -173,7 +173,7 @@ int pvfs2_vis_start(char* path, int upda
     {
 	memset(next_id_array, 0, io_server_count*sizeof(uint32_t));
 	ret = PVFS_mgmt_perf_mon_list(cur_fs,
-				      creds,
+				      &creds,
 				      perf_matrix, 
 				      end_time_ms_array,
 				      addr_array,
@@ -288,7 +288,7 @@ static void *poll_for_updates(void *args
     while (1)
     {
 	ret = PVFS_mgmt_perf_mon_list(fs,
-				      credentials,
+				      &credentials,
 				      tmp_matrix, 
 				      end_time_ms_array,
 				      addr_array,



More information about the PVFS2-CVS mailing list