[Pvfs2-cvs] commit by slang in pvfs2/src/kernel/linux-2.6: super.c
CVS commit program
cvs at parl.clemson.edu
Thu Dec 14 00:23:55 EST 2006
Update of /projects/cvsroot/pvfs2/src/kernel/linux-2.6
In directory parlweb1:/tmp/cvs-serv31468/src/kernel/linux-2.6
Modified Files:
Tag: pvfs-2-6-branch
super.c
Log Message:
fixes to get the sizes right for reporting the fs capacity
----------------------------------------------------------------------
pvfs-2-6-branch CVS: src/apps/kernel/linux/pvfs2-client-core.c CVS:
src/common/misc/pint-util.c src/kernel/linux-2.6/super.c CVS:
----------------------------------------------------------------------
uu
Index: super.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/kernel/linux-2.6/super.c,v
diff -p -u -r1.87.2.2 -r1.87.2.3
--- super.c 4 Dec 2006 06:01:48 -0000 1.87.2.2
+++ super.c 14 Dec 2006 05:23:55 -0000 1.87.2.3
@@ -435,15 +435,16 @@ static int pvfs2_statfs(
if (new_op->downcall.status > -1)
{
gossip_debug(GOSSIP_SUPER_DEBUG, "pvfs2_statfs: got %ld blocks available | "
- "%ld blocks total\n",
+ "%ld blocks total | %ld block size\n",
(long) new_op->downcall.resp.statfs.blocks_avail,
- (long) new_op->downcall.resp.statfs.blocks_total);
+ (long) new_op->downcall.resp.statfs.blocks_total,
+ (long) new_op->downcall.resp.statfs.block_size);
buf->f_type = sb->s_magic;
/* stash the fsid as well */
memcpy(&buf->f_fsid, &(PVFS2_SB(sb)->fs_id),
sizeof(PVFS2_SB(sb)->fs_id));
- buf->f_bsize = sb->s_blocksize;
+ buf->f_bsize = new_op->downcall.resp.statfs.block_size;
buf->f_namelen = PVFS2_NAME_LEN;
buf->f_blocks = (sector_t)
More information about the Pvfs2-cvs
mailing list