]> git.baikalelectronics.ru Git - kernel.git/commit
ceph: fix statvfs fr_size
authorSage Weil <sage@inktank.com>
Fri, 22 Feb 2013 23:31:00 +0000 (15:31 -0800)
committerSage Weil <sage@inktank.com>
Fri, 22 Feb 2013 23:31:00 +0000 (15:31 -0800)
commit35bf2518a945232557dd33ae7d1a1648832fd998
treef411b004dd4f67356621a6bde80c23c089700f0f
parent8f2fb0e2510bd34bc462385d5a6e0e7e1b927ed9
ceph: fix statvfs fr_size

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>
fs/ceph/super.c
fs/ceph/super.h