ceph: fix statvfs fr_size
authorSage Weil <sage@inktank.com>
Fri, 22 Feb 2013 23:31:00 +0000 (15:31 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 Jun 2013 18:58:47 +0000 (11:58 -0700)
commit999899ad5860fb34e679ca2a853074e54fda9d93
treea3ea42fe1dc8a5236610dfffbc9e2df278de5b83
parent7f259658b1f320b35040a14d7ace371b5cc15fbb
ceph: fix statvfs fr_size

commit 92a49fb0f79f3300e6e50ddf56238e70678e4202 upstream.

Different versions of glibc are broken in different ways, but the short of
it is that for the time being, frsize should == bsize, and be used as the
multiple for the blocks, free, and available fields.  This mirrors what is
done for NFS.  The previous reporting of the page size for frsize meant
that newer glibc and df would report a very small value for the fs size.

Fixes http://tracker.ceph.com/issues/3793.

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ceph/super.c
fs/ceph/super.h