]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
os/bluestore: fix pmem osd build problem
authorlixiaoy1 <xiaoyan.li@intel.com>
Thu, 27 Jun 2019 14:12:34 +0000 (10:12 -0400)
committerlixiaoy1 <xiaoyan.li@intel.com>
Fri, 28 Jun 2019 08:45:43 +0000 (04:45 -0400)
Signed-off-by: Peterson, Scott <scott.d.peterson@intel.com>
Signed-off-by: Li, Xiaoyan <xiaoyan.li@intel.com>
src/os/bluestore/PMEMDevice.cc

index 1f9d9599b1e1af93c416951cb328323726ebf9ac..cf305536707a3ccde09148729b28908eab088b20 100644 (file)
@@ -143,7 +143,7 @@ int PMEMDevice::collect_metadata(const string& prefix, map<string,string> *pm) c
   if (S_ISBLK(st.st_mode)) {
     (*pm)[prefix + "access_mode"] = "blk";
     char buffer[1024] = {0};
-    BlkDev blkdev(fd_buffered);
+    BlkDev blkdev(fd);
 
     blkdev.model(buffer, sizeof(buffer));
     (*pm)[prefix + "model"] = buffer;
@@ -184,7 +184,7 @@ void PMEMDevice::aio_submit(IOContext *ioc)
   return;
 }
 
-int PMEMDevice::write(uint64_t off, bufferlist& bl, bool buffered, int write_hint = WRITE_LIFE_NOT_SET)
+int PMEMDevice::write(uint64_t off, bufferlist& bl, bool buffered, int write_hint)
 {
   uint64_t len = bl.length();
   dout(20) << __func__ << " " << off << "~" << len  << dendl;
@@ -219,7 +219,7 @@ int PMEMDevice::aio_write(
   bufferlist &bl,
   IOContext *ioc,
   bool buffered,
-  int write_hint = WRITE_LIFE_NOT_SET)
+  int write_hint)
 {
   return write(off, bl, buffered);
 }