[Pvfs2-cvs] commit by bligon in pvfs2/src/apps/admin: pvfs2-xattr.c

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


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

Modified Files:
      Tag: Orange-FailOver-Becky
	pvfs2-xattr.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: pvfs2-xattr.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/apps/admin/pvfs2-xattr.c,v
diff -p -u -r1.7.10.2 -r1.7.10.2.2.1
--- pvfs2-xattr.c	25 Jun 2009 16:56:01 -0000	1.7.10.2
+++ pvfs2-xattr.c	3 Jul 2009 21:20:53 -0000	1.7.10.2.2.1
@@ -170,7 +170,7 @@ int main(int argc, char **argv)
                    ,SPECIAL_METAFILE_HINT_KEYLEN) == 0) {
             PVFS_metafile_hint *hint = 
                             (PVFS_metafile_hint *) user_opts->val[0].buffer;
-            printf("Metafile hints");
+            printf("Metafile hints (0x%08x)",(unsigned int)hint->flags);
             if (hint->flags & PVFS_IMMUTABLE_FL) {
                 printf(" :immutable file ");
             }
@@ -179,6 +179,9 @@ int main(int argc, char **argv)
             }
             if (hint->flags & PVFS_NOATIME_FL) {
                 printf(" :Atime updates disabled");
+            }
+            if (hint->flags & PVFS_MIRROR_FL) {
+		printf("  :Mirroring is enabled");
             }
             printf("\n");
         } else if ( strncmp(user_opts->key[0].buffer



More information about the Pvfs2-cvs mailing list