[Pvfs2-cvs] commit by kunkel in pvfs2/src/io/trove/trove-handle-mgmt: trove-handle-mgmt.c

CVS commit program cvs at parl.clemson.edu
Sat Dec 2 06:20:40 EST 2006


Update of /projects/cvsroot/pvfs2/src/io/trove/trove-handle-mgmt
In directory parlweb1:/tmp/cvs-serv18213/src/io/trove/trove-handle-mgmt

Modified Files:
      Tag: kunkel-hint-branch
	trove-handle-mgmt.c 
Log Message:
Upgrade to current CVS version


Index: trove-handle-mgmt.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/io/trove/trove-handle-mgmt/trove-handle-mgmt.c,v
diff -p -u -r1.44 -r1.44.20.1
--- trove-handle-mgmt.c	11 Nov 2005 21:31:06 -0000	1.44
+++ trove-handle-mgmt.c	2 Dec 2006 11:20:40 -0000	1.44.20.1
@@ -80,14 +80,25 @@ static int trove_check_handle_ranges(TRO
                                         TROVE_DEFAULT_TEST_TIMEOUT);
             }
 
-            if (ret != 1)
+            /* check result of testing */
+            if (ret < 0)
             {
                 gossip_debug(GOSSIP_TROVE_DEBUG,
-                             "trove_dspace_iterate_handles failed\n");
-                return -1;
+                             "dspace test of iterate_handles failed\n");
+                return ret;
             }
 
             ret = 0;
+
+            /* also check result of actual operation, in this case,
+             * trove_dspace_iterate_handles
+             */
+            if(state < 0)
+            {
+                gossip_debug(GOSSIP_TROVE_DEBUG,
+                             "trove_dspace_iterate_handles failed\n");
+                return state;
+            }
 
             /* look for special case of a blank fs */
             if ((count == 1) && (handles[0] == 0))



More information about the Pvfs2-cvs mailing list