[Pvfs2-cvs] commit by dbonnie in pvfs2/src/client/sysint: sys-getattr.sm

CVS commit program cvs at parl.clemson.edu
Tue Jul 8 16:10:29 EDT 2008


Update of /anoncvs/pvfs2/src/client/sysint
In directory parlweb1:/tmp/cvs-serv21661/src/client/sysint

Modified Files:
      Tag: cu-security-branch
	sys-getattr.sm 
Log Message:
Updated capability encode/decode.  Fixed capability transmission across the wire...currently asks for a capability with every getattr and gives one back as well.


Index: sys-getattr.sm
===================================================================
RCS file: /anoncvs/pvfs2/src/client/sysint/sys-getattr.sm,v
diff -p -u -r1.110.4.2 -r1.110.4.3
--- sys-getattr.sm	16 May 2008 16:06:54 -0000	1.110.4.2
+++ sys-getattr.sm	8 Jul 2008 20:10:29 -0000	1.110.4.3
@@ -204,7 +204,7 @@ PVFS_error PVFS_isys_getattr(
         sm_p->getattr,
         ref,
         PVFS_util_sys_to_object_attr_mask(
-            attrmask),
+            attrmask) | PVFS_ATTR_CAPABILITY,
         PVFS_TYPE_NONE,
         0);
 
@@ -508,8 +508,24 @@ static int getattr_object_getattr_comp_f
      */
     PINT_copy_object_attr(&sm_p->getattr.attr,
                           &resp_p->u.getattr.attr);
-
+                          
     attr =  &sm_p->getattr.attr;
+    
+    gossip_debug(GOSSIP_GETATTR_DEBUG,"Capability ptr: %p\n", 
+         &(resp_p->u.getattr.attr.capability));
+    gossip_debug(GOSSIP_GETATTR_DEBUG,"Owner: %u\n", 
+        (unsigned int) resp_p->u.getattr.attr.capability.owner);
+    gossip_debug(GOSSIP_GETATTR_DEBUG,"Op mask: %d\n", 
+        resp_p->u.getattr.attr.capability.op_mask);
+    gossip_debug(GOSSIP_GETATTR_DEBUG,"Fsid: %d\n", 
+        resp_p->u.getattr.attr.capability.fsid);
+    gossip_debug(GOSSIP_GETATTR_DEBUG,"Handles: %d\n", 
+        resp_p->u.getattr.attr.capability.num_handles);
+    gossip_debug(GOSSIP_GETATTR_DEBUG,"Sig size: %d\n", 
+        resp_p->u.getattr.attr.capability.sig_size);
+    if (resp_p->u.getattr.attr.capability.signature) 
+        gossip_debug(GOSSIP_GETATTR_DEBUG,"Sig: %d\n", 
+            resp_p->u.getattr.attr.capability.signature[0]);
 
     /* if the ref_type mask is set to a non-zero value (!PVFS_TYPE_NONE)
      * a -PVFS_error will be triggered if the



More information about the Pvfs2-cvs mailing list