summaryrefslogtreecommitdiffstats
path: root/src/crimson/tools/store_nbd/tm_driver.cc
diff options
context:
space:
mode:
authorZhang Song <zhangsong325@gmail.com>2022-09-20 08:09:57 +0200
committerZhang Song <zhangsong325@gmail.com>2022-09-22 07:47:50 +0200
commitadff54fa7285b1a1daf416b3a3b89e4bec8a7df9 (patch)
treef1d5338bad51edb4fa52ebb117e9ac8d150087fe /src/crimson/tools/store_nbd/tm_driver.cc
parentcrimson/os/seastore: introduce get_backend_type to Device (diff)
downloadceph-adff54fa7285b1a1daf416b3a3b89e4bec8a7df9.tar.xz
ceph-adff54fa7285b1a1daf416b3a3b89e4bec8a7df9.zip
crimson/os/seastore: make device according to device type
Signed-off-by: Zhang Song <zhangsong325@gmail.com>
Diffstat (limited to 'src/crimson/tools/store_nbd/tm_driver.cc')
-rw-r--r--src/crimson/tools/store_nbd/tm_driver.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/crimson/tools/store_nbd/tm_driver.cc b/src/crimson/tools/store_nbd/tm_driver.cc
index 060016822f2..7df85d1b2d1 100644
--- a/src/crimson/tools/store_nbd/tm_driver.cc
+++ b/src/crimson/tools/store_nbd/tm_driver.cc
@@ -153,7 +153,7 @@ seastar::future<> TMDriver::mkfs()
{
assert(config.path);
logger().debug("mkfs");
- return Device::make_device(*config.path
+ return Device::make_device(*config.path, device_type_t::SSD
).then([this](DeviceRef dev) {
device = std::move(dev);
seastore_meta_t meta;
@@ -195,7 +195,7 @@ seastar::future<> TMDriver::mount()
{
return (config.mkfs ? mkfs() : seastar::now()
).then([this] {
- return Device::make_device(*config.path);
+ return Device::make_device(*config.path, device_type_t::SSD);
}).then([this](DeviceRef dev) {
device = std::move(dev);
return device->mount();