summaryrefslogtreecommitdiff
path: root/src/common/code_environment.cc
diff options
context:
space:
mode:
authorAlexandre Oliva <oliva@gnu.org>2013-09-17 04:23:32 -0300
committerSage Weil <sage@inktank.com>2013-09-17 06:31:48 -0700
commit59147be9aeea47576884e5587dd7da8bb58c6c53 (patch)
tree52fec485ef59bde3177470ca075f874af281b93b /src/common/code_environment.cc
parent109cd50ca9b859ff7098c4c08a8f1f6cfbc7906e (diff)
downloadceph-59147be9aeea47576884e5587dd7da8bb58c6c53.tar.gz
osd: compute full ratio from kb_avail
On btrfs, kb_used + kb_avail can be much smaller than total kb, and what really matters to avoid filling up the disk is how much space is available, not how much we've used. Thus, compute the ratio we use to determine full or nearfull from kb_avail rather than from kb_used. Signed-off-by: Alexandre Oliva <oliva@gnu.org> Signed-off-by: Sage Weil <sage@inktank.com>
Diffstat (limited to 'src/common/code_environment.cc')
0 files changed, 0 insertions, 0 deletions