If there is not a valid label, then the label is not found. This is a
more reasonable error code than "Invalid argumnet".
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit
5cd98b0dfdc7758761ff789b12faca2266a7e128)
dout(2) << __func__ << " unable to decode label at offset " << p.get_off()
<< ": " << e.what()
<< dendl;
- return -EINVAL;
+ return -ENOENT;
}
if (crc != expected_crc) {
derr << __func__ << " bad crc on label, expected " << expected_crc