]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: Log error to stderr if fail to decode label 46091/head
authorPrashant D <pdhange@redhat.com>
Fri, 29 Apr 2022 13:24:08 +0000 (09:24 -0400)
committerPrashant D <pdhange@redhat.com>
Fri, 29 Apr 2022 13:24:08 +0000 (09:24 -0400)
In case label block is corrupted or missing, the ceph-bluestore-tool
reports ENOENT but does not report specifically that it failed
to decode label. Log error specific to unable to decode label to stderr.

Signed-off-by: Prashant D <pdhange@redhat.com>
src/os/bluestore/BlueStore.cc

index 1263f19a4c710dc5892302bd8172fcd77c36c817..f62a465c44389ca7b85af3e187bb77a4380a4177 100644 (file)
@@ -5414,7 +5414,7 @@ int BlueStore::_read_bdev_label(CephContext* cct, const string &path,
     decode(expected_crc, p);
   }
   catch (ceph::buffer::error& e) {
-    dout(2) << __func__ << " unable to decode label at offset " << p.get_off()
+    derr << __func__ << " unable to decode label at offset " << p.get_off()
         << ": " << e.what()
         << dendl;
     return -ENOENT;