]> 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)
commit0c8bf18ac7f2d55386fe36e427b660dfa89d8b53
treef411b004dd4f67356621a6bde80c23c089700f0f
parentefca7e2ba044347bc1176e71c62a9cc289e9b452
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