[Pvfs2-cvs] commit by bligon in pvfs2/src/proto: PINT-le-bytefield.c

CVS commit program cvs at parl.clemson.edu
Fri Jul 3 17:20:53 EDT 2009


Update of /projects/cvsroot/pvfs2/src/proto
In directory parlweb1:/tmp/cvs-serv32407/src/proto

Modified Files:
      Tag: Orange-FailOver-Becky
	PINT-le-bytefield.c 
Log Message:
SETEATTR will now update the meta-hint flag if the user is changing the mirroring mode.  If the mirror-mode is
changed to NO_MIRRORING, then the mirror flag is turned off.  Otherwise, the mirror flag is turned on.

Corrected memory leak errors with the seteattr request.


Index: PINT-le-bytefield.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/proto/PINT-le-bytefield.c,v
diff -p -u -r1.58.10.1 -r1.58.10.1.6.1
--- PINT-le-bytefield.c	30 Apr 2009 15:03:01 -0000	1.58.10.1
+++ PINT-le-bytefield.c	3 Jul 2009 21:20:53 -0000	1.58.10.1.6.1
@@ -806,7 +806,8 @@ static void lebf_decode_rel(struct PINT_
                 if (req->u.create.layout.server_list.servers)
                     decode_free(req->u.create.layout.server_list.servers);
 	    case PVFS_SERV_BATCH_CREATE:
-		decode_free(req->u.batch_create.handle_extent_array.extent_array);
+		decode_free(
+                    req->u.batch_create.handle_extent_array.extent_array);
 		break;
 
 	    case PVFS_SERV_IO:
@@ -843,9 +844,16 @@ static void lebf_decode_rel(struct PINT_
 		if (req->u.setattr.attr.mask & PVFS_ATTR_META_DFILES)
 		    decode_free(req->u.setattr.attr.u.meta.dfile_array);
 		break;
+
             case PVFS_SERV_LISTATTR:
                 if (req->u.listattr.handles)
                     decode_free(req->u.listattr.handles);
+                break;
+
+	    case PVFS_SERV_SETEATTR:
+                decode_free(req->u.seteattr.key);
+                decode_free(req->u.seteattr.val);
+                break;
 
 	    case PVFS_SERV_GETCONFIG:
 	    case PVFS_SERV_LOOKUP_PATH:
@@ -867,7 +875,7 @@ static void lebf_decode_rel(struct PINT_
 	    case PVFS_SERV_MGMT_PERF_MON:
 	    case PVFS_SERV_MGMT_EVENT_MON:
 	    case PVFS_SERV_GETEATTR:
-	    case PVFS_SERV_SETEATTR:
+
 	    case PVFS_SERV_DELEATTR:
             case PVFS_SERV_LISTEATTR:
             case PVFS_SERV_BATCH_REMOVE:



More information about the Pvfs2-cvs mailing list