[PVFS2-CVS] commit by pcarns in pvfs2/test/correctness/pts: create.c test-concurrent-meta.c test-finalized.c test-invalid-files.c test-misc.c test-null-params.c test-pvfs-datatype-init.c test-uninitialized.c

CVS commit program cvs at parl.clemson.edu
Wed Mar 24 23:23:40 EST 2004


Update of /projects/cvsroot/pvfs2/test/correctness/pts
In directory parlweb:/tmp/cvs-serv13064/test/correctness/pts

Modified Files:
	create.c test-concurrent-meta.c test-finalized.c 
	test-invalid-files.c test-misc.c test-null-params.c 
	test-pvfs-datatype-init.c test-uninitialized.c 
Log Message:
added in stub for dist argument to sys_create(), must be set to NULL for
now.  None of the other dist changes are in place, but I wanted to go ahead
and get this in for the next point release so we don't break compatibility
adding the sys_create() arg later


Index: create.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/test/correctness/pts/create.c,v
diff -p -u -r1.30 -r1.31
--- create.c	24 Mar 2004 23:10:34 -0000	1.30
+++ create.c	25 Mar 2004 04:23:39 -0000	1.31
@@ -46,7 +46,7 @@ static int create_file(PVFS_fs_id fs_id,
 
     memset(&resp_create,0,sizeof(resp_create));
     ret = PVFS_sys_create(filename, resp_look.ref,
-                          attr, credentials, &resp_create);
+                          attr, credentials, NULL, &resp_create);
     if (ret < 0)
     {
 	printf("create failed with errcode = %d\n", ret);

Index: test-concurrent-meta.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/test/correctness/pts/test-concurrent-meta.c,v
diff -p -u -r1.14 -r1.15
--- test-concurrent-meta.c	24 Mar 2004 23:10:34 -0000	1.14
+++ test-concurrent-meta.c	25 Mar 2004 04:23:39 -0000	1.15
@@ -191,7 +191,7 @@ static int create_file(char *filename, c
     }
 
     ret = PVFS_sys_create(filename, resp_look.ref,
-                          attr, credentials, &resp_create);
+                          attr, credentials, NULL, &resp_create);
    return ret;
 }
 

Index: test-finalized.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/test/correctness/pts/test-finalized.c,v
diff -p -u -r1.17 -r1.18
--- test-finalized.c	24 Mar 2004 23:10:34 -0000	1.17
+++ test-finalized.c	25 Mar 2004 04:23:39 -0000	1.18
@@ -261,7 +261,7 @@ static int test_create(void)
 
     ret =
 	PVFS_sys_create(filename, resp_look.ref, attr, credentials,
-			&resp_create);
+			NULL, &resp_create);
     return ret;
 }
 

Index: test-invalid-files.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/test/correctness/pts/test-invalid-files.c,v
diff -p -u -r1.18 -r1.19
--- test-invalid-files.c	24 Mar 2004 23:10:34 -0000	1.18
+++ test-invalid-files.c	25 Mar 2004 04:23:39 -0000	1.19
@@ -289,13 +289,13 @@ static int test_create(int testcase)
 	resp_look.ref.handle = -1;
 	ret =
 	    PVFS_sys_create(filename, resp_look.ref, attr, credentials,
-			    &resp_create);
+			    NULL, &resp_create);
 	break;
     case 1:
 	resp_look.ref.fs_id = -1;
 	ret =
 	    PVFS_sys_create(filename, resp_look.ref, attr, credentials,
-			    &resp_create);
+			    NULL, &resp_create);
 	break;
     default:
 	fprintf(stderr, "Error - incorect case number \n");
@@ -537,7 +537,7 @@ static int init_file(void)
     }
 
     return PVFS_sys_create(filename, resp_look.ref, attr, credentials,
-			   &resp_create);
+			   NULL, &resp_create);
 
 }
 

Index: test-misc.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/test/correctness/pts/test-misc.c,v
diff -p -u -r1.19 -r1.20
--- test-misc.c	24 Mar 2004 23:10:34 -0000	1.19
+++ test-misc.c	25 Mar 2004 04:23:39 -0000	1.20
@@ -690,7 +690,7 @@ static int test_files_as_dirs(int testca
 	}
 
 	ret = PVFS_sys_create("foo", resp_look.ref, attr, credentials,
-                           &resp_create);
+                           NULL, &resp_create);
 	//get root
 	ret = PVFS_sys_lookup(fs_id, "/foo", credentials,
                               &resp_look, PVFS2_LOOKUP_LINK_NO_FOLLOW);
@@ -701,7 +701,7 @@ static int test_files_as_dirs(int testca
 	}
 
 	ret = PVFS_sys_create("bar", resp_look.ref, attr, credentials,
-                           &resp_create);
+                           NULL, &resp_create);
 	break;
     case 1:
 	//Need to add some more interesting cases
@@ -920,19 +920,19 @@ static int init_files(void)
     }
 
     ret = PVFS_sys_create(filename, resp_look.ref, attr, credentials,
-                           &resp_create);
+                           NULL, &resp_create);
 
     /* create sparse file */
     filename = strcpy(filename, "sparse");
 
     ret = PVFS_sys_create(filename, resp_look.ref, attr, credentials,
-                           &resp_create);
+                           NULL, &resp_create);
 
     /* create a file for testing alocate and truncate*/
     filename = strcpy(filename, "altrun");
 
     ret = PVFS_sys_create(filename, resp_look.ref, attr, credentials,
-                           &resp_create);
+                           NULL, &resp_create);
 
 
     filename = strcpy(filename, "invalid_perms");
@@ -957,7 +957,7 @@ static int init_files(void)
     }
 
     return PVFS_sys_create(filename, resp_look.ref, attr, credentials,
-                           &resp_create);
+                           NULL, &resp_create);
 }   
 
 

Index: test-null-params.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/test/correctness/pts/test-null-params.c,v
diff -p -u -r1.36 -r1.37
--- test-null-params.c	24 Mar 2004 23:10:34 -0000	1.36
+++ test-null-params.c	25 Mar 2004 04:23:39 -0000	1.37
@@ -308,12 +308,12 @@ static int test_create(int nullCase)
     case 0:
 	ret =
 	    PVFS_sys_create(NULL, resp_look.ref, attr, credentials,
-			    &resp_create);
+			    NULL, &resp_create);
 	break;
     case 1:
 	ret =
 	    PVFS_sys_create(filename, resp_look.ref, attr, credentials,
-			    NULL);
+			    NULL, NULL);
 	break;
     default:
 	fprintf(stderr, "Error - incorect case number \n");
@@ -550,7 +550,7 @@ static int init_file(void)
     }
 
     return PVFS_sys_create(filename, resp_look.ref, attr, credentials,
-			   &resp_create);
+			   NULL, &resp_create);
 
 }
 

Index: test-pvfs-datatype-init.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/test/correctness/pts/test-pvfs-datatype-init.c,v
diff -p -u -r1.18 -r1.19
--- test-pvfs-datatype-init.c	24 Mar 2004 23:10:34 -0000	1.18
+++ test-pvfs-datatype-init.c	25 Mar 2004 04:23:40 -0000	1.19
@@ -86,7 +86,7 @@ int test_pvfs_datatype_init(
 		time(NULL);
 
             ret = PVFS_sys_create(&(filename[1]),resp_lk.ref,
-                                  attr, credentials, &resp_cr);
+                                  attr, credentials, NULL, &resp_cr);
             if ((ret < 0) || (!resp_cr.ref.handle))
             {
                 debug_printf("Error: PVFS_sys_create() failure.\n");

Index: test-uninitialized.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/test/correctness/pts/test-uninitialized.c,v
diff -p -u -r1.16 -r1.17
--- test-uninitialized.c	24 Mar 2004 23:10:34 -0000	1.16
+++ test-uninitialized.c	25 Mar 2004 04:23:40 -0000	1.17
@@ -219,7 +219,7 @@ static int test_create(void)
 
     ret =
 	PVFS_sys_create(filename, resp_look.ref, attr, credentials,
-			&resp_create);
+			NULL, &resp_create);
     return ret;
 }
 



More information about the PVFS2-CVS mailing list