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: refactor FreeListManager to get clearer view on the number #19718

Merged
merged 2 commits into from Jan 5, 2018

Conversation

ifed01
Copy link
Contributor

@ifed01 ifed01 commented Dec 29, 2017

of alloc units it tracks
This should make relations between FreeListManager and BlueStore::_fsck a bit less error-prone as the former will encapsulate more internal details: number of allocation units it tracks, aligned block boundaries during enumeration, etc.

Signed-off-by: Igor Fedotov ifedotov@suse.com

@@ -8,7 +8,8 @@
#define dout_context cct
#define dout_subsys ceph_subsys_bluestore
#undef dout_prefix
#define dout_prefix *_dout << "stupidalloc "
#define dout_prefix *_dout << "stupidalloc 0x" << std::hex\
<< this << " " << std::dec
Copy link
Member

Choose a reason for hiding this comment

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

fwiw pointers format in hex automatically

of alloc units it tracks.
This also fixes out-of-range access for fsck's used_blocks bitmap that
might happen when checking stores created prior to v12.2.2
Fixes http://tracker.ceph.com/issues/22535

Signed-off-by: Igor Fedotov <ifedotov@suse.com>
boost doesn't always handle out-of-range access properly.

Signed-off-by: Igor Fedotov <ifedotov@suse.com>
@ifed01
Copy link
Contributor Author

ifed01 commented Dec 30, 2017

@liewegas - please review once again, I extended the PR to catch and fix http://tracker.ceph.com/issues/22535

@tchaikov tchaikov merged commit 6a817b9 into ceph:master Jan 5, 2018
@ifed01 ifed01 deleted the wip-ifed-freelist-cleanup branch January 5, 2018 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants