]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: Improve dout when bdev label cannot be decoded 61470/head
authorAdam Kupczyk <akupczyk@ibm.com>
Tue, 21 Jan 2025 17:12:01 +0000 (17:12 +0000)
committerAdam Kupczyk <akupczyk@ibm.com>
Tue, 21 Jan 2025 17:12:01 +0000 (17:12 +0000)
Remove unuseful message about decoding failure.
Add location of bdev label that fails.

Signed-off-by: Adam Kupczyk <akupczyk@ibm.com>
src/os/bluestore/BlueStore.cc

index 5a0379030d3f0a6a306ae3e8e6d23ab558c945e1..a9162ce0be6968c3389739677c579a5691b6ed5b 100644 (file)
@@ -6684,10 +6684,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) {