decode(expected_crc, p);
}
catch (ceph::buffer::error& e) {
- derr << __func__ << " " << path.c_str() << " data at 0x" << std::hex << disk_position
- << std::dec << ", " << "unable to decode label " << dendl;
+ // We can still get here in non-erroneous scenarios,
+ // hence do not log that as an error
+ dout(0) << __func__ << " " << path.c_str() << " data at 0x" << std::hex << disk_position
+ << std::dec << ", " << "unable to decode label "
+ << dendl;
return -ENOENT;
}
if (crc != expected_crc) {
- derr << __func__ << " bad crc on label, expected " << expected_crc
- << " != actual " << crc << dendl;
+ // We can still get here in non-erroneousscenarios,
+ // hence do not log that as an error
+ dout(0) << __func__ << " bad crc on label, expected " << expected_crc
+ << " != actual " << crc << dendl;
return -EIO;
}
dout(10) << __func__ << " got " << *label << dendl;