From: Adam Kupczyk Date: Tue, 21 Jan 2025 17:12:01 +0000 (+0000) Subject: os/bluestore: Improve dout when bdev label cannot be decoded X-Git-Tag: v19.2.3~334^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=150e1c7467cf05d569423547accda9d854ed709c;p=ceph.git os/bluestore: Improve dout when bdev label cannot be decoded Remove unuseful message about decoding failure. Add location of bdev label that fails. Signed-off-by: Adam Kupczyk (cherry picked from commit 8c28695cde065235e23dbd7af827df22965cb76e) --- diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index 7091c192568c..698e0e583032 100644 --- a/src/os/bluestore/BlueStore.cc +++ b/src/os/bluestore/BlueStore.cc @@ -6609,10 +6609,8 @@ int BlueStore::_read_bdev_label( decode(expected_crc, p); } catch (ceph::buffer::error& e) { - derr << __func__ << " unable to decode label " << path.c_str() - << " at offset " << p.get_off() - << ": " << e.what() - << dendl; + derr << __func__ << " " << path.c_str() << " data at " << std::hex << disk_position + << std::dec << ", " << "unable to decode label " << dendl; return -ENOENT; } if (crc != expected_crc) {