We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 18ea9f3 + 6c7b0dd commit fa31c2eCopy full SHA for fa31c2e
src/os/ObjectStore.cc
@@ -70,20 +70,20 @@ int ObjectStore::probe_block_device_fsid(
70
const string& path,
71
uuid_d *fsid)
72
{
73
- int r;
74
-
75
#if defined(WITH_BLUESTORE)
76
// first try bluestore -- it has a crc on its header and will fail
77
// reliably.
78
- r = BlueStore::get_block_device_fsid(cct, path, fsid);
+ int r = BlueStore::get_block_device_fsid(cct, path, fsid);
79
if (r == 0) {
80
lgeneric_dout(cct, 0) << __func__ << " " << path << " is bluestore, "
81
<< *fsid << dendl;
82
return r;
+ } else {
+ return -EINVAL;
83
}
84
-#endif
85
+#else
86
return -EINVAL;
+#endif
87
88
89
int ObjectStore::write_meta(const std::string& key,
0 commit comments