]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: get_parent API method should properly handle migrating image
authorJason Dillaman <dillaman@redhat.com>
Fri, 8 Feb 2019 15:14:03 +0000 (10:14 -0500)
committerJason Dillaman <dillaman@redhat.com>
Mon, 11 Feb 2019 14:42:33 +0000 (09:42 -0500)
commitcb18eb2f63e21d9af6be6d21bb48bce4f0e86ed7
tree238f5e9b1da4497c5d1a776401e12d9d5e5c9484
parent35d17efabe3a36e18529ec30ab3f35c0c60c5072
librbd: get_parent API method should properly handle migrating image

The true parent of a migrating parent is actually the parent of the
migration source image. There are other API methods available to
retreive the details of the migration source.

Fixes: http://tracker.ceph.com/issues/37998
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/api/Image.cc
src/test/librbd/test_Migration.cc