[Pvfs2-cvs] commit by pcarns in pvfs2-1/src/apps/admin: pvfs2-stat.c

CVS commit program cvs at parl.clemson.edu
Fri Apr 3 11:36:07 EST 2009


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

Modified Files:
	pvfs2-stat.c 
Log Message:
print out the block size in pvfs2-stat


Index: pvfs2-stat.c
===================================================================
RCS file: /projects/cvsroot/pvfs2-1/src/apps/admin/pvfs2-stat.c,v
diff -p -u -r1.10 -r1.11
--- pvfs2-stat.c	20 Nov 2008 01:16:45 -0000	1.10
+++ pvfs2-stat.c	3 Apr 2009 16:36:06 -0000	1.11
@@ -472,6 +472,13 @@ void print_stats(const PVFS_object_ref *
    {
       fprintf(stdout, "  datafiles     : %d\n", attr->dfile_count);
    }
+
+   if( (attr->mask & PVFS_ATTR_SYS_BLKSIZE) &&
+       (attr->objtype == PVFS_TYPE_METAFILE))
+   {
+      fprintf(stdout, "  blksize       : %lld\n", lld(attr->blksize));
+   }
+
    /* dirent_count is only valid on directories */
    if( (attr->mask & PVFS_ATTR_SYS_DIRENT_COUNT) &&
        (attr->objtype == PVFS_TYPE_DIRECTORY))



More information about the Pvfs2-cvs mailing list