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

CVS commit program cvs at parl.clemson.edu
Wed Mar 24 11:22:09 EST 2004


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

Modified Files:
	io-bug.c 
Log Message:
simplifying test case a little


Index: io-bug.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/test/client/sysint/io-bug.c,v
diff -p -u -r1.1 -r1.2
--- io-bug.c	24 Mar 2004 05:58:31 -0000	1.1
+++ io-bug.c	24 Mar 2004 16:22:09 -0000	1.2
@@ -40,10 +40,10 @@ int main(
     PVFS_Request mem_req;
     void *buffer;
     int buffer_size;
-    int32_t len_array1[64];
-    int32_t len_array2[64];
-    PVFS_offset off_array1[64];
-    PVFS_offset off_array2[64];
+    int32_t len_array1[17];
+    int32_t len_array2[17];
+    PVFS_offset off_array1[17];
+    PVFS_offset off_array2[17];
 
     if (argc != 2)
     {
@@ -167,7 +167,7 @@ int main(
     off_array1[0] = 0;
     off_array1[0] += (unsigned int)io_buffer;
     off_array2[0] = 327552;
-    for(i=0; i<64; i++)
+    for(i=0; i<17; i++)
     {
 	off_array1[i] = off_array1[0] + i*8;
 	off_array2[i] = off_array2[0] + i*8;
@@ -175,9 +175,10 @@ int main(
 	len_array2[i] = 4;
     }
 
- PVFS_Request_hindexed(64, len_array1,
+/* this works fine with 16 entries */
+ PVFS_Request_hindexed(17, len_array1,
                      off_array1, PVFS_BYTE, &mem_req);
- PVFS_Request_hindexed(64, len_array2,
+ PVFS_Request_hindexed(17, len_array2,
                      off_array2, PVFS_BYTE, &file_req);
 
     ret = PVFS_sys_write(pinode_refn, file_req, 0, PVFS_BOTTOM, mem_req,



More information about the PVFS2-CVS mailing list