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

Signed-off-by: Adam Kupczyk <akupczyk@ibm.com>
(cherry picked from commit 8c28695cde065235e23dbd7af827df22965cb76e)

src/os/bluestore/BlueStore.cc

index 7091c192568c6e4719640c8d7f3c79365d2e442d..698e0e583032c17e78f4a1f08c5627cffe36d94c 100644 (file)
@@ -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) {