[Pvfs2-cvs] commit by slang in pvfs2/src/client/sysint: server-get-config.sm sys-getattr.sm

CVS commit program cvs at parl.clemson.edu
Fri May 16 11:49:43 EDT 2008


Update of /projects/cvsroot/pvfs2/src/client/sysint
In directory parlweb1:/tmp/cvs-serv4943/src/client/sysint

Modified Files:
	server-get-config.sm sys-getattr.sm 
Log Message:
fixes for msgpairarray changes.


Index: server-get-config.sm
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/client/sysint/server-get-config.sm,v
diff -p -u -r1.33 -r1.34
--- server-get-config.sm	6 May 2008 18:59:52 -0000	1.33
+++ server-get-config.sm	16 May 2008 15:49:42 -0000	1.34
@@ -166,7 +166,6 @@ int PINT_server_get_config(
     sm_p->msgarray_op.params.retry_delay = 2000; /* 2 second retry delay */
     sm_p->msgarray_op.params.retry_limit = 5;    /* retry up to 5 times */
 
-    PINT_msgpair_init(&sm_p->msgarray_op);
     PINT_init_sysint_credentials(sm_p->cred_p, &creds);
     sm_p->u.get_config.mntent = mntent_p;
     sm_p->u.get_config.config = config;
@@ -256,17 +255,18 @@ static PINT_sm_action server_get_config_
     PVFS_BMI_addr_t serv_addr;
 
     gossip_debug(GOSSIP_CLIENT_DEBUG,
-		"get_config state: server_get_config_setup_msgpair\n");
+                 "get_config state: server_get_config_setup_msgpair\n");
+
+    PINT_msgpair_init(&sm_p->msgarray_op);
+    msg_p = &sm_p->msgarray_op.msgpair;
 
     if (ENCODING_IS_VALID(sm_p->u.get_config.mntent->encoding))
     {
-        sm_p->msgarray_op.msgpair.enc_type = sm_p->u.get_config.mntent->encoding;
+        msg_p->enc_type = sm_p->u.get_config.mntent->encoding;
     }
 
-    msg_p = &sm_p->msgarray_op.msgpair;
-
     ret = BMI_addr_lookup(&serv_addr,
-	    sm_p->u.get_config.mntent->the_pvfs_config_server);
+                          sm_p->u.get_config.mntent->the_pvfs_config_server);
     if (ret < 0)
     {
         gossip_lerr("Failed to resolve BMI address %s\n",

Index: sys-getattr.sm
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/client/sysint/sys-getattr.sm,v
diff -p -u -r1.112 -r1.113
--- sys-getattr.sm	6 May 2008 18:59:52 -0000	1.112
+++ sys-getattr.sm	16 May 2008 15:49:42 -0000	1.113
@@ -636,7 +636,7 @@ static PINT_sm_action getattr_datafile_g
         struct PINT_smcb *smcb, job_status_s *js_p)
 {
     struct PINT_client_sm *sm_p = PINT_sm_frame(smcb, PINT_FRAME_CURRENT);
-    int ret = -PVFS_EINVAL, i = 0;
+    int ret = -PVFS_EINVAL;
     PVFS_object_attr *attr = NULL;
     PINT_sm_msgpair_state *msg_p;
     int index;
@@ -661,17 +661,17 @@ static PINT_sm_action getattr_datafile_g
 
         gossip_debug(GOSSIP_GETATTR_DEBUG,
                      "  datafile_getattr: getting size for handle %llu\n",
-                     llu(attr->u.meta.dfile_array[i]));
+                     llu(attr->u.meta.dfile_array[index]));
 
         PINT_SERVREQ_GETATTR_FILL(
             msg_p->req,
             *sm_p->cred_p,
             sm_p->getattr.object_ref.fs_id,
-            attr->u.meta.dfile_array[i],
+            attr->u.meta.dfile_array[index],
             PVFS_ATTR_DATA_SIZE);
 
         msg_p->fs_id = sm_p->getattr.object_ref.fs_id;
-        msg_p->handle = attr->u.meta.dfile_array[i];
+        msg_p->handle = attr->u.meta.dfile_array[index];
         msg_p->retry_flag = PVFS_MSGPAIR_RETRY;
         msg_p->comp_fn = getattr_datafile_getattr_comp_fn;
     }



More information about the Pvfs2-cvs mailing list