]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore: fix statfs to not include DB partition in free space 13284/head
authorSage Weil <sage@redhat.com>
Thu, 26 Jan 2017 19:22:53 +0000 (14:22 -0500)
committerShinobu Kinjo <shinobu@redhat.com>
Mon, 6 Feb 2017 23:28:31 +0000 (18:28 -0500)
commit1d25327b00f01e987dec022412edb95040d69a42
treecc63fa2c0e21e3fe180f20885c0f0a11b3e291dd
parentce8edcfed6cd908779efd229202eab1232d16f1c
os/bluestore: fix statfs to not include DB partition in free space

If we report the DB space as vailable, ceph thinks the OSD can store more
data and will not mark the cluster as full as easily.  And in reality, we
can't actually store data in this space--only metadata.  Avoid the problem
by not reporting it as available.

Fixes: http://tracker.ceph.com/issues/18599
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit c66d5babb1e283869ba0f1f59029bead5ca5f37d)
src/os/bluestore/BlueStore.cc