]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: return an error when removing a non-existent image
authorJosh Durgin <josh.durgin@inktank.com>
Tue, 10 Jul 2012 00:24:19 +0000 (17:24 -0700)
committerJosh Durgin <josh.durgin@inktank.com>
Tue, 10 Jul 2012 00:27:42 +0000 (17:27 -0700)
commit67361c10ea8ed5642ee6c9f09d5fad20749dda08
treea5c06792b0c4d6361755ce13ef4ead7e3cd1fe8f
parent96ca508dcd227db11597cd4963208872af30fcc4
librbd: return an error when removing a non-existent image

Try treating the image as new format if it's not in the old-style
directory, which is the last step in old-style removal. Then if the
image is not found in the new-style directory, -ENOENT will be
returned, preserving the semantics that existed prior to
6f096b6cdc66bb92762aa92e51e5e448039cf3e3.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
src/librbd.cc