[PVFS2-CVS] commit by neill in pvfs2/src/common/misc: pvfs2-util.c

CVS commit program cvs at parl.clemson.edu
Mon May 10 15:40:08 EDT 2004


Update of /projects/cvsroot/pvfs2/src/common/misc
In directory parlweb:/tmp/cvs-serv5812/src/common/misc

Modified Files:
	pvfs2-util.c 
Log Message:
- safer version of previous fix


Index: pvfs2-util.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/common/misc/pvfs2-util.c,v
diff -p -u -r1.54 -r1.55
--- pvfs2-util.c	10 May 2004 17:12:33 -0000	1.54
+++ pvfs2-util.c	10 May 2004 18:40:08 -0000	1.55
@@ -751,9 +751,17 @@ int PVFS_util_init_defaults(void)
     }
 
     /* remove any mount entries that couldn't be added here */
-    for(; j > -1; j--)
+    for(i = 0; i < PVFS2_MAX_INVALID_MNTENTS; i++)
     {
-        PVFS_util_remove_internal_mntent(&tab->mntent_array[j]);
+        if (failed_indices[i])
+        {
+            PVFS_util_remove_internal_mntent(
+                &tab->mntent_array[failed_indices[i]]);
+        }
+        else
+        {
+            break;
+        }
     }
 
     if (found_one)



More information about the PVFS2-CVS mailing list