]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: closing images now returns a result code
authorJason Dillaman <dillaman@redhat.com>
Thu, 2 Jul 2015 16:39:42 +0000 (12:39 -0400)
committerJason Dillaman <dillaman@redhat.com>
Thu, 2 Jul 2015 16:47:12 +0000 (12:47 -0400)
commit7ef4af5d33c9936ae0d9227e42d892faedeb90ea
tree715d1249156617b81edf6ba28b5c64b15da30af3
parentfb6f2717fbdcd3e8b9f7d16523ed1c282f028a36
librbd: closing images now returns a result code

Added new librbd::Image::close method to allow checking the close result
when using the C++ librbd library.  rbd_close is no longer hard-coded to
return 0.

Fixes: #12069
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/include/rbd/librbd.hpp
src/librbd/ImageCtx.cc
src/librbd/ImageCtx.h
src/librbd/internal.cc
src/librbd/internal.h
src/librbd/librbd.cc
src/tracing/librbd.tp