]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: make rbd_get_parent_info() accept NULL out params
authorIlya Dryomov <ilya.dryomov@inktank.com>
Tue, 8 Jul 2014 15:21:54 +0000 (19:21 +0400)
committerIlya Dryomov <ilya.dryomov@inktank.com>
Mon, 28 Jul 2014 09:53:54 +0000 (13:53 +0400)
commiteb697dd9ee87b62150582b93246ab664fbe42fd2
tree389dc378b44bf28d108a23dcd51f032ddda6e94f
parent2088c267d6578d8b2e0a0220d23c9fea3d558706
librbd: make rbd_get_parent_info() accept NULL out params

The C++ version of rbd_get_parent_info() allows passing NULL for parent
image name, image name and snapshot name out parameters.  Make C API do
the same both for consistency and to make it easier to check whether
the image at hand has a parent or not.

Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
src/librbd/librbd.cc
src/test/librbd/test_librbd.cc