Skip to content

os/bluestore: Split BlueStore.cc -> BlueStore.cc + Recovery.cc - #73609

Open
aclamk wants to merge 4 commits into
ceph:mainfrom
aclamk:aclamk-bs-separated-recovery
Open

aclamk wants to merge 4 commits into
ceph:mainfrom
aclamk:aclamk-bs-separated-recovery

Conversation

@aclamk

@aclamk aclamk commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

The code around file stored allocator recovery from onodes is large.
This PR provides no logic change, but extracts functionality to Recover.cc.

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

Move various small functions from BlueStore.cc to header files.
- get_key_extent_shard
- is_extent_shard_key
- get_shared_blob_key
- get_key_shared_blob

Now BlueStore.cc and OnodeScan.cc can share them.

Signed-off-by: Adam Kupczyk <[email protected]>
@aclamk
aclamk requested review from a team as code owners November 7, 2026 17:58
@aclamk
aclamk force-pushed the aclamk-bs-separated-recovery branch 3 times, most recently from 9201f59 to 7f9795a Compare November 8, 2026 08:50
@aclamk

aclamk commented Nov 9, 2026

Copy link
Copy Markdown
Contributor Author

jenkins test make check

@aclamk
aclamk force-pushed the aclamk-bs-separated-recovery branch from 7f9795a to 481262c Compare November 9, 2026 13:35
Actually deleted complementary parts from each file.

Signed-off-by: Adam Kupczyk <[email protected]>
@Jayaprakash-ibm

Copy link
Copy Markdown
Contributor

This PR has been added to wip-jaya-bs-testing2-18-11-2026.

@Jayaprakash-ibm

Copy link
Copy Markdown
Contributor

@Jayaprakash-ibm Jayaprakash-ibm left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM! Nice Split

we have a stale declaration for void get_shared_blob_key in BlueStore_objects.cc, please remove it

#include <algorithm>

#include <boost/container/flat_set.hpp>
#include <boost/algorithm/string.hpp>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nit: Minor Cleanup
we can remove

-#include <boost/container/flat_set.hpp>
-#include <boost/algorithm/string.hpp>

@Jayaprakash-ibm

Copy link
Copy Markdown
Contributor

jenkins test make check
jenkins test make check arm64
jenkins test submodules
jenkins test signed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants