From: Sage Weil Date: Wed, 24 Jan 2018 03:07:08 +0000 (-0600) Subject: os/bluestore: change bdev parse error to ENOENT X-Git-Tag: v13.0.2~388^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5cd98b0dfdc7758761ff789b12faca2266a7e128;p=ceph.git os/bluestore: change bdev parse error to ENOENT 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 --- diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index b3e9553be27..5dc92421514 100644 --- a/src/os/bluestore/BlueStore.cc +++ b/src/os/bluestore/BlueStore.cc @@ -4203,7 +4203,7 @@ int BlueStore::_read_bdev_label(CephContext* cct, string path, 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