From ac8ac078635ab567a1349b2394b549a3382e567b Mon Sep 17 00:00:00 2001 From: Jinyong Ha Date: Mon, 24 May 2021 18:34:46 +0900 Subject: [PATCH] seastore: change class name NormalNBD to PosixNVMeDevice Signed-off-by: Jinyong Ha --- src/crimson/os/seastore/nvmedevice/nvmedevice.cc | 8 ++++---- src/crimson/os/seastore/nvmedevice/nvmedevice.h | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/crimson/os/seastore/nvmedevice/nvmedevice.cc b/src/crimson/os/seastore/nvmedevice/nvmedevice.cc index f6c6cfeef4d93..4eb89e716c93c 100644 --- a/src/crimson/os/seastore/nvmedevice/nvmedevice.cc +++ b/src/crimson/os/seastore/nvmedevice/nvmedevice.cc @@ -19,7 +19,7 @@ namespace { namespace crimson::os::seastore::nvme_device { -open_ertr::future<> NormalNBD::open( +open_ertr::future<> PosixNVMeDevice::open( const std::string &in_path, seastar::open_flags mode) { return seastar::do_with(in_path, [this, mode](auto& in_path) { @@ -38,7 +38,7 @@ open_ertr::future<> NormalNBD::open( }); } -write_ertr::future<> NormalNBD::write( +write_ertr::future<> PosixNVMeDevice::write( uint64_t offset, bufferptr &bptr, uint16_t stream) { @@ -63,7 +63,7 @@ write_ertr::future<> NormalNBD::write( }); } -read_ertr::future<> NormalNBD::read( +read_ertr::future<> PosixNVMeDevice::read( uint64_t offset, bufferptr &bptr) { logger().debug( @@ -87,7 +87,7 @@ read_ertr::future<> NormalNBD::read( }); } -seastar::future<> NormalNBD::close() { +seastar::future<> PosixNVMeDevice::close() { logger().debug(" close "); return device.close(); } diff --git a/src/crimson/os/seastore/nvmedevice/nvmedevice.h b/src/crimson/os/seastore/nvmedevice/nvmedevice.h index 3bfaab2aeae67..ee8965a6fe37d 100644 --- a/src/crimson/os/seastore/nvmedevice/nvmedevice.h +++ b/src/crimson/os/seastore/nvmedevice/nvmedevice.h @@ -251,13 +251,13 @@ public: /* * Implementation of NVMeBlockDevice with POSIX APIs * - * NormalNBD provides NVMe SSD interfaces through POSIX APIs which is generally + * PosixNVMeDevice provides NVMe SSD interfaces through POSIX APIs which is generally * available at most operating environment. */ -class NormalNBD : public NVMeBlockDevice { +class PosixNVMeDevice : public NVMeBlockDevice { public: - NormalNBD() {} - ~NormalNBD() = default; + PosixNVMeDevice() {} + ~PosixNVMeDevice() = default; open_ertr::future<> open( const std::string &in_path, -- 2.39.5