From 25753c76c18103be7411a006a2396b6e20e7d851 Mon Sep 17 00:00:00 2001 From: Prashant D Date: Fri, 29 Apr 2022 09:24:08 -0400 Subject: [PATCH] os/bluestore: Log error to stderr if fail to decode label 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 --- src/os/bluestore/BlueStore.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index 1263f19a4c7..f62a465c443 100644 --- a/src/os/bluestore/BlueStore.cc +++ b/src/os/bluestore/BlueStore.cc @@ -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; -- 2.39.5