]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore/KernelDevice: assume rotational if we can't get devname 14115/head
authorSage Weil <sage@redhat.com>
Wed, 5 Apr 2017 03:39:42 +0000 (23:39 -0400)
committerSage Weil <sage@redhat.com>
Wed, 5 Apr 2017 03:39:42 +0000 (23:39 -0400)
Signed-off-by: Sage Weil <sage@redhat.com>
src/os/bluestore/KernelDevice.cc

index 1d338b27527dab7e1bf15d1ea12c7c2ef9e9f587..d8b19a1e19522d0811d8a935afea897c0a8e3f22 100644 (file)
@@ -125,10 +125,11 @@ int KernelDevice::open(const string& p)
     if (r < 0) {
       derr << "unable to get device name for " << path << ": "
           << cpp_strerror(r) << dendl;
-      goto out_fail;
+      rotational = true;
+    } else {
+      dout(20) << __func__ << " devname " << devname << dendl;
+      rotational = block_device_is_rotational(devname);
     }
-    dout(20) << __func__ << " devname " << devname << dendl;
-    rotational = block_device_is_rotational(devname);
   }
 
   // Operate as though the block size is 4 KB.  The backing file