]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: check_full_status() remove bogus comment and use equivalent computation
authorDavid Zafman <dzafman@redhat.com>
Wed, 12 Apr 2017 05:04:07 +0000 (22:04 -0700)
committerDavid Zafman <dzafman@redhat.com>
Mon, 17 Apr 2017 15:00:24 +0000 (08:00 -0700)
commit1fafec217599b65d902e21efd43049646e1e145c
tree31d0d310ce93a7d9d5f404904f9c6b2fb68f05c0
parent84088568b5bf4fb3fa48ebf3e157d288f9f29eed
osd: check_full_status() remove bogus comment and use equivalent computation

We actually compute kb_used as the kb - kb_avail.  We don't have the
statfs() system call issue of non-privileged f_bavail vs f_bfree.  It
was assumed that used was really like (blocks - f_bfree).  It is not.

Signed-off-by: David Zafman <dzafman@redhat.com>
src/osd/OSD.cc