[Pvfs2-cvs] commit by pcarns in pvfs2-1/src/client/sysint: sys-create.sm

CVS commit program cvs at parl.clemson.edu
Tue Apr 1 12:57:36 EST 2008


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

Modified Files:
      Tag: small-file-branch
	sys-create.sm 
Log Message:
make sure to propigate batch remove errors even if they occur in prelude
before attempting actual remove; add warning message to client if cleanup
step fails after crdirent failure


Index: sys-create.sm
===================================================================
RCS file: /projects/cvsroot/pvfs2-1/src/client/sysint/sys-create.sm,v
diff -p -u -r1.114.2.6 -r1.114.2.7
--- sys-create.sm	1 Apr 2008 15:55:02 -0000	1.114.2.6
+++ sys-create.sm	1 Apr 2008 17:57:36 -0000	1.114.2.7
@@ -415,14 +415,23 @@ static int batch_remove_handles_comp_fn(
                                         struct PVFS_server_resp *resp_p,
                                         int index)
 {
+    PINT_smcb *smcb = v_p;
+    PINT_client_sm *sm_p = PINT_sm_frame(smcb, PINT_FRAME_CURRENT);
+    const char* server_name = NULL;
+    int server_type;
+    PINT_sm_msgpair_state *msg_p = NULL;
+
     gossip_debug(GOSSIP_CLIENT_DEBUG, "batch_remove_handles_comp_fn\n");
 
     assert(resp_p->op == PVFS_SERV_BATCH_REMOVE);
 
     if (resp_p->status != 0)
     {
-        gossip_debug(GOSSIP_CLIENT_DEBUG,
-                     "Failed to remove handle number %d\n", index);
+        msg_p = &sm_p->msgarray[index];
+        server_name = PINT_cached_config_map_addr(msg_p->fs_id, 
+            msg_p->svr_addr, 
+            &server_type);
+        gossip_err("Warning: cleanup failed to remove at least one handle from %s; continuing.\n", server_name);
     }
     return resp_p->status;
 }



More information about the Pvfs2-cvs mailing list