]> git.proxmox.com Git - ceph.git/blob - ceph/src/crimson/tools/store_nbd/block_driver.cc
import quincy beta 17.1.0
[ceph.git] / 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
3
4 #include "fs_driver.h"
5 #include "block_driver.h"
6
7 #include "tm_driver.h"
8
9 BlockDriverRef get_backend(BlockDriver::config_t config)
10 {
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);
15 } else {
16 ceph_assert(0 == "invalid option");
17 return BlockDriverRef();
18 }
19 }