]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore/BlockDevice: fix path
authorSage Weil <sage@redhat.com>
Tue, 22 Dec 2015 15:48:14 +0000 (10:48 -0500)
committerSage Weil <sage@redhat.com>
Fri, 1 Jan 2016 18:07:21 +0000 (13:07 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
src/os/bluestore/BlockDevice.cc

index 55ba4528fe087f0a13c944e07891e8ebc0b8be3c..5e31ab7920450d5c3d6c012fbefb595c1f09a6fd 100644 (file)
@@ -69,8 +69,9 @@ int BlockDevice::_lock()
   return 0;
 }
 
-int BlockDevice::open(string path)
+int BlockDevice::open(string p)
 {
+  path = p;
   int r = 0;
   dout(1) << __func__ << " path " << path << dendl;
 
@@ -151,6 +152,7 @@ void BlockDevice::close()
   assert(fd_buffered >= 0);
   VOID_TEMP_FAILURE_RETRY(::close(fd_buffered));
   fd_buffered = -1;
+  path.clear();
 }
 
 int BlockDevice::flush()