-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request ceph#50085 from myoungwon/wip-fix-initialization-v…
…start-rbm crimson/os/seastore: RBM fixes during vstart startup time Reviewed-by: Yingxin Cheng <[email protected]>
- Loading branch information
Showing
17 changed files
with
474 additions
and
306 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- | ||
// vim: ts=8 sw=2 smarttab | ||
|
||
#include "crimson/os/seastore/logging.h" | ||
#include "crimson/os/seastore/random_block_manager.h" | ||
#include "crimson/os/seastore/random_block_manager/nvme_block_device.h" | ||
#include "crimson/os/seastore/random_block_manager/rbm_device.h" | ||
|
||
namespace crimson::os::seastore { | ||
|
||
seastar::future<random_block_device::RBMDeviceRef> | ||
get_rb_device( | ||
const std::string &device) | ||
{ | ||
return seastar::make_ready_future<random_block_device::RBMDeviceRef>( | ||
std::make_unique< | ||
random_block_device::nvme::NVMeBlockDevice | ||
>(device + "/block")); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.