Skip to content

Commit 8c28695

Browse files
committed
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 <[email protected]>
1 parent cc1bd71 commit 8c28695

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/os/bluestore/BlueStore.cc

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6684,10 +6684,8 @@ int BlueStore::_read_bdev_label(
66846684
decode(expected_crc, p);
66856685
}
66866686
catch (ceph::buffer::error& e) {
6687-
derr << __func__ << " unable to decode label " << path.c_str()
6688-
<< " at offset " << p.get_off()
6689-
<< ": " << e.what()
6690-
<< dendl;
6687+
derr << __func__ << " " << path.c_str() << " data at " << std::hex << disk_position
6688+
<< std::dec << ", " << "unable to decode label " << dendl;
66916689
return -ENOENT;
66926690
}
66936691
if (crc != expected_crc) {

0 commit comments

Comments
 (0)