]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
blk: split detect supported device and create driver
authorChangcheng Liu <changcheng.liu@aliyun.com>
Wed, 15 Jul 2020 09:33:40 +0000 (17:33 +0800)
committerChangcheng Liu <changcheng.liu@aliyun.com>
Tue, 21 Jul 2020 05:56:33 +0000 (13:56 +0800)
commit125e02e0dd7ec669b7e6751e320082d53960d9ef
tree5b3a6fcf0970e515e071003adc2fd7fb17fb023c
parent4e3f7b71a8cf3c12c3fd383c809f9e9e1a3de065
blk: split detect supported device and create driver

Use detect_device_type to detect the devices supported by driver.
Use create_with_type to create driver according to the device.

Suggested-by: Kefu Chai <kefu@redhat.com>
Signed-off-by: Changcheng Liu <changcheng.liu@aliyun.com>
src/blk/BlockDevice.cc
src/blk/BlockDevice.h
src/blk/pmem/PMEMDevice.cc
src/blk/pmem/PMEMDevice.h
src/blk/spdk/NVMEDevice.cc
src/blk/spdk/NVMEDevice.h
src/blk/zoned/HMSMRDevice.cc
src/blk/zoned/HMSMRDevice.h