[PVFS2-CVS]
commit by pcarns in pvfs2/include: pvfs2-sysint.h pvfs2-util.h
CVS commit program
cvs at parl.clemson.edu
Mon Mar 8 23:18:59 EST 2004
Update of /projects/cvsroot/pvfs2/include
In directory parlweb:/tmp/cvs-serv22815/include
Modified Files:
pvfs2-sysint.h pvfs2-util.h
Log Message:
modified PVFS_util_parse_pvfstab to return a const pointer to a tab
structure managed within the library; user no longer responsible for
allocating or freeing any of it
Index: pvfs2-sysint.h
===================================================================
RCS file: /projects/cvsroot/pvfs2/include/pvfs2-sysint.h,v
diff -p -u -r1.23 -r1.24
--- pvfs2-sysint.h 8 Mar 2004 23:01:16 -0000 1.23
+++ pvfs2-sysint.h 9 Mar 2004 04:18:59 -0000 1.24
@@ -52,8 +52,9 @@ struct PVFS_sys_mntent
/* results of parsing a pvfs2 tabfile, may contain more than one entry */
struct PVFS_util_tab_s
{
- int mntent_count;
- struct PVFS_sys_mntent *mntent_array;
+ int mntent_count; /* number of mnt entries */
+ struct PVFS_sys_mntent *mntent_array; /* mnt entries */
+ char tabfile_name[PVFS_NAME_MAX]; /* name of tabfile */
};
typedef struct PVFS_util_tab_s PVFS_util_tab;
Index: pvfs2-util.h
===================================================================
RCS file: /projects/cvsroot/pvfs2/include/pvfs2-util.h,v
diff -p -u -r1.11 -r1.12
--- pvfs2-util.h 8 Mar 2004 22:06:34 -0000 1.11
+++ pvfs2-util.h 9 Mar 2004 04:18:59 -0000 1.12
@@ -12,11 +12,7 @@
#define __PVFS2_UTIL_H
/* client side config file / option management */
-int PVFS_util_parse_pvfstab(
- const char* tabfile,
- PVFS_util_tab * tab);
-void PVFS_util_free_pvfstab(
- PVFS_util_tab * tab);
+const PVFS_util_tab* PVFS_util_parse_pvfstab(const char* tabfile);
/* path management */
int PVFS_util_lookup_parent(
More information about the PVFS2-CVS
mailing list