]>
git.proxmox.com Git - ceph.git/blob - ceph/src/crimson/tools/store_nbd/block_driver.cc
1 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2 // vim: ts=8 sw=2 smarttab
5 #include "block_driver.h"
9 BlockDriverRef
get_backend(BlockDriver::config_t config
)
11 if (config
.type
== "transaction_manager") {
12 return std::make_unique
<TMDriver
>(config
);
13 } else if (config
.is_futurized_store()) {
14 return std::make_unique
<FSDriver
>(config
);
16 ceph_assert(0 == "invalid option");
17 return BlockDriverRef();