[Pvfs2-cvs] commit by robl in pvfs2-1/src/common/misc: pvfs2-util.c
CVS commit program
cvs at parl.clemson.edu
Tue May 30 18:18:42 EDT 2006
Update of /projects/cvsroot/pvfs2-1/src/common/misc
In directory parlweb1:/tmp/cvs-serv25947/src/common/misc
Modified Files:
pvfs2-util.c
Log Message:
[pcarns]: Make the system interface skip over any tabfiles that ar NULL, rather than calling open(2) on them.
Index: pvfs2-util.c
===================================================================
RCS file: /projects/cvsroot/pvfs2-1/src/common/misc/pvfs2-util.c,v
diff -u -w -p -u -r1.88 -r1.89
--- pvfs2-util.c 29 May 2006 16:21:11 -0000 1.88
+++ pvfs2-util.c 30 May 2006 22:18:42 -0000 1.89
@@ -266,6 +266,8 @@ const PVFS_util_tab *PVFS_util_parse_pvf
*/
for (i = 0; (i < file_count && !targetfile); i++)
{
+ if(file_list[i])
+ {
PINT_fstab_open(mnt_fp, file_list[i]);
if (mnt_fp)
{
@@ -288,6 +290,7 @@ const PVFS_util_tab *PVFS_util_parse_pvf
PINT_fstab_entry_destroy(tmp_ent);
}
PINT_fstab_close(mnt_fp);
+ }
}
}
More information about the Pvfs2-cvs
mailing list