Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

os/bluestore: include bluefs space in statfs result #10795

Merged
merged 1 commit into from Aug 22, 2016

Conversation

liewegas
Copy link
Member

We were counting all (free) space allocated to bluefs as used. Instead,
query bluefs to find out what is used and what is free.

Signed-off-by: Sage Weil sage@redhat.com

@liewegas liewegas force-pushed the wip-bluestore-statfs branch 3 times, most recently from 0822aaa to 2c2333a Compare August 19, 2016 17:19
assert(alloc->get_free() >= bluefs_len);
buf->available = (alloc->get_free() - bluefs_len);
buf->available = alloc->get_free();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@liewegas Do we need the above as the below loop is counting usage for all device ? Probably, needed only if bluefs is not enabled ?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@liewegas sorry, my bad , it is only collecting usage for all the devices for db/wal. We are good it seems..I will verify..

We were counting all (free) space allocated to bluefs as used.  Instead,
query bluefs to find out what is used and what is free.

Signed-off-by: Sage Weil <sage@redhat.com>
@varadakari
Copy link
Contributor

LGTM

@liewegas liewegas merged commit aac733d into ceph:master Aug 22, 2016
@liewegas liewegas deleted the wip-bluestore-statfs branch August 22, 2016 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants