]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: fix the image format detection 4558/head
authorZhiqiang Wang <zhiqiang.wang@intel.com>
Wed, 6 May 2015 08:14:29 +0000 (16:14 +0800)
committerZhiqiang Wang <zhiqiang.wang@intel.com>
Wed, 6 May 2015 08:14:29 +0000 (16:14 +0800)
commit835b12ff6dcd7a08944c3e71eba96bbd4c938710
tree0eefbe42c9ebe82e6d9ede13a71fac1eef57800b
parentcd1a9c0101318f5864d210ff134cf58436f46b44
librbd: fix the image format detection

If the detection of the old format fails with reasons other than
-ENOENT, we should return with this error. Otherwise, if we continue the
new format detection and fail with -ENOENT, the caller will get the
missleading failure information.

Signed-off-by: Zhiqiang Wang <zhiqiang.wang@intel.com>
src/librbd/internal.cc