[PVFS2-CVS] commit by neill in pvfs2/src/client/sysint: fs-add.c pint-sysint-utils.c

CVS commit program cvs at parl.clemson.edu
Fri Mar 19 15:55:14 EST 2004


Update of /projects/cvsroot/pvfs2/src/client/sysint
In directory parlweb:/tmp/cvs-serv15674/src/client/sysint

Modified Files:
	fs-add.c pint-sysint-utils.c 
Log Message:
- some pvfstab parsing cleanups; hopefully won't break anything


Index: fs-add.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/client/sysint/fs-add.c,v
diff -p -u -r1.2 -r1.3
--- fs-add.c	15 Mar 2004 20:09:32 -0000	1.2
+++ fs-add.c	19 Mar 2004 20:55:14 -0000	1.3
@@ -52,8 +52,8 @@ int PVFS_sys_fs_add(struct PVFS_sys_mnte
     }
 
     cur_fs = PINT_config_find_fs_name(server_config, mntent->pvfs_fs_name);
-    /* it should not be possible for this to fail after a successful call to
-     * PINT_server_get_config()
+    /* it should not be possible for this to fail after a successful
+     * call to PINT_server_get_config()
      */
     assert(cur_fs);
 

Index: pint-sysint-utils.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/client/sysint/pint-sysint-utils.c,v
diff -p -u -r1.23 -r1.24
--- pint-sysint-utils.c	15 Mar 2004 20:09:32 -0000	1.23
+++ pint-sysint-utils.c	19 Mar 2004 20:55:14 -0000	1.24
@@ -18,6 +18,7 @@
 #include "trove.h"
 #include "server-config.h"
 #include "str-utils.h"
+#include "pvfs2-util.h"
 #include "client-state-machine.h"
 
 static int g_session_tag;
@@ -149,8 +150,7 @@ int PINT_server_get_config(
 	return ret;
     }
 
-    creds.uid = getuid();
-    creds.gid = getgid();
+    PVFS_util_gen_credentials(&creds);
 
     memset(&serv_req,0,sizeof(struct PVFS_server_req));
     serv_req.op = PVFS_SERV_GETCONFIG;



More information about the PVFS2-CVS mailing list