[Pvfs2-cvs] commit by pcarns in pvfs2-1/src/server: get-attr.sm

CVS commit program cvs at parl.clemson.edu
Thu Feb 28 15:58:16 EST 2008


Update of /projects/cvsroot/pvfs2-1/src/server
In directory parlweb1:/tmp/cvs-serv27408

Modified Files:
      Tag: small-file-branch
	get-attr.sm 
Log Message:
Transitioning on a specific error code doesn't seem to work the way I
expected :)  Catch the error code I'm looking for in a follow up state
function instead.


Index: get-attr.sm
===================================================================
RCS file: /projects/cvsroot/pvfs2-1/src/server/get-attr.sm,v
diff -p -u -r1.87.6.6 -r1.87.6.7
--- get-attr.sm	28 Feb 2008 20:54:48 -0000	1.87.6.6
+++ get-attr.sm	28 Feb 2008 20:58:15 -0000	1.87.6.7
@@ -102,9 +102,7 @@ nested machine pvfs2_get_attr_work_sm
     state detect_stuffed
     {
         run getattr_detect_stuffed;
-        success => read_stuffed_size;
-        TROVE_ENOENT => read_stuffed_size;
-        default => setup_resp;
+        default => read_stuffed_size;
     }
 
     state read_stuffed_size
@@ -703,6 +701,12 @@ static PINT_sm_action getattr_read_stuff
          */
         s_op->resp.u.getattr.attr.mask &= (~(PVFS_ATTR_META_STUFFED_SIZE));
         js_p->error_code = 0;
+        return SM_ACTION_COMPLETE;
+    }
+    if(js_p->error_code)
+    {
+        /* any other error code here is just a normal error case */
+        /* preserve error code and catch next error transition */
         return SM_ACTION_COMPLETE;
     }
 



More information about the Pvfs2-cvs mailing list