[PVFS2-CVS] commit by pcarns in pvfs2/test/client/sysint: test-pint-bucket.c

CVS commit program cvs at parl.clemson.edu
Thu Mar 11 17:19:24 EST 2004


Update of /projects/cvsroot/pvfs2/test/client/sysint
In directory parlweb:/tmp/cvs-serv5270/test/client/sysint

Modified Files:
	test-pint-bucket.c 
Log Message:
added hooks to add file systems _after_ system interface initialization, 
updated apps accordingly, made pvfs2-ping more verbose using the extra info
that we now have access to.  still not very robust.  here are some
(temporary) limitations:
- client must initialize all compiled in flowprotocols and bmi modules from
  the beginning, no hooks to init them as we go
- can't remove file systems that have been added
- probably can't yet add file systems that didn't come from parse_fstab() call


Index: test-pint-bucket.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/test/client/sysint/test-pint-bucket.c,v
diff -p -u -r1.30 -r1.31
--- test-pint-bucket.c	9 Mar 2004 04:19:02 -0000	1.30
+++ test-pint-bucket.c	11 Mar 2004 22:19:23 -0000	1.31
@@ -91,10 +91,13 @@ int main(int argc, char **argv)	
     }
 
     memset(&server_config,0,sizeof(struct server_configuration_s));
-    if (PINT_server_get_config(&server_config, *tab))
+    for(i=0; i<tab->mntent_count; i++)
     {
-        fprintf(stderr, "PINT_server_get_config failure.\n");
-        return(-1);
+	if (PINT_server_get_config(&server_config, &(tab->mntent_array[i])))
+	{
+	    fprintf(stderr, "PINT_server_get_config failure.\n");
+	    return(-1);
+	}
     }
 
     cur = server_config.file_systems;



More information about the PVFS2-CVS mailing list