summaryrefslogtreecommitdiffstats
path: root/fs/ceph/super.h
diff options
context:
space:
mode:
authorSage Weil <sage@inktank.com>2013-02-22 15:31:00 -0800
committerSage Weil <sage@inktank.com>2013-02-22 15:31:00 -0800
commit92a49fb0f79f3300e6e50ddf56238e70678e4202 (patch)
treef411b004dd4f67356621a6bde80c23c089700f0f /fs/ceph/super.h
parent4c7a08c83a7842e88838dde16684d6bafffdfaf0 (diff)
downloadblackbird-op-linux-92a49fb0f79f3300e6e50ddf56238e70678e4202.tar.gz
blackbird-op-linux-92a49fb0f79f3300e6e50ddf56238e70678e4202.zip
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>
Diffstat (limited to 'fs/ceph/super.h')
-rw-r--r--fs/ceph/super.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/super.h b/fs/ceph/super.h
index 9861cce10a49..604526a0d6cd 100644
--- a/fs/ceph/super.h
+++ b/fs/ceph/super.h
@@ -21,7 +21,7 @@
/* large granularity for statfs utilization stats to facilitate
* large volume sizes on 32-bit machines. */
-#define CEPH_BLOCK_SHIFT 20 /* 1 MB */
+#define CEPH_BLOCK_SHIFT 22 /* 4 MB */
#define CEPH_BLOCK (1 << CEPH_BLOCK_SHIFT)
#define CEPH_MOUNT_OPT_DIRSTAT (1<<4) /* `cat dirname` for stats */
OpenPOWER on IntegriCloud