]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
seastore: change class name NormalNBD to PosixNVMeDevice
authorJinyong Ha <jy200.ha@samsung.com>
Mon, 24 May 2021 09:34:46 +0000 (18:34 +0900)
committermyoungwon oh <ohmyoungwon@gmail.com>
Tue, 15 Jun 2021 02:09:06 +0000 (11:09 +0900)
Signed-off-by: Jinyong Ha <jy200.ha@samsung.com>
src/crimson/os/seastore/nvmedevice/nvmedevice.cc
src/crimson/os/seastore/nvmedevice/nvmedevice.h

index f6c6cfeef4d93ed881bc2322c7a9ccdead6e8bb5..4eb89e716c93cba2a29ae0d14aea01873e7b36ed 100644 (file)
@@ -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();
 }
index 3bfaab2aeae67a27dc2ac8f2498a85dba8d2582f..ee8965a6fe37d0f06e15a7ae9850eee3695fce52 100644 (file)
@@ -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,