]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
bluestore/NVMEDevice: fix the compilation issue for collect_metadata 14455/head
authorZiye Yang <ziye.yang@intel.com>
Tue, 11 Apr 2017 10:31:36 +0000 (18:31 +0800)
committeroptimistyzy <optimistyzy@gmail.com>
Tue, 11 Apr 2017 10:36:09 +0000 (18:36 +0800)
Signed-off-by: optimistyzy <optimistyzy@gmail.com>
src/os/bluestore/NVMEDevice.cc
src/os/bluestore/NVMEDevice.h

index 354036ff0aa18e0971a2fecc88b1c3602e521023..ef27b8d2ab4f9b76436390c1d4da4ad69f8c1d02 100644 (file)
@@ -890,7 +890,7 @@ void NVMEDevice::close()
   dout(1) << __func__ << " end" << dendl;
 }
 
-void NVMEDevice::collect_metadata(map<string,string> *pm)
+int NVMEDevice::collect_metadata(string prefix, map<string,string> *pm) const
 {
   (*pm)[prefix + "rotational"] = "0";
   (*pm)[prefix + "size"] = stringify(get_size());
@@ -899,6 +899,8 @@ void NVMEDevice::collect_metadata(map<string,string> *pm)
   (*pm)[prefix + "type"] = "nvme";
   (*pm)[prefix + "access_mode"] = "spdk";
   (*pm)[prefix + "nvme_serial_number"] = name;
+
+  return 0;
 }
 
 int NVMEDevice::flush()
index 42f4090cba54bc62d20bc4d32e806a68868fe596..318c3415a949ec37742901613dc02ebdbd915a41 100644 (file)
@@ -236,7 +236,7 @@ class NVMEDevice : public BlockDevice {
   int invalidate_cache(uint64_t off, uint64_t len) override;
   int open(const string& path) override;
   void close() override;
-  void collect_metadata(map<string,string> *pm) override;
+  int collect_metadata(string prefix, map<string,string> *pm) const override;
 };
 
 #endif