ceph: fix statvfs fr_size
authorSage Weil <sage@inktank.com>
Fri, 22 Feb 2013 23:31:00 +0000 (15:31 -0800)
committerBen Hutchings <ben@decadent.org.uk>
Sat, 27 Jul 2013 04:34:32 +0000 (05:34 +0100)
commitae804ee7b70be863320e0f5c70e8e59410d23cd1
treec1949f4461db8d2a221e414fc273107ff796d967
parenta7aa204def549434aa80457926bc49300b18b181
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: Ben Hutchings <ben@decadent.org.uk>
fs/ceph/super.c
fs/ceph/super.h