]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: open parent image when opening a child
authorJosh Durgin <josh.durgin@inktank.com>
Wed, 11 Jul 2012 00:11:56 +0000 (17:11 -0700)
committerJosh Durgin <josh.durgin@inktank.com>
Mon, 23 Jul 2012 16:55:42 +0000 (09:55 -0700)
commitc18c4b86693f23e463fcaaaa27488e8786daa56b
tree97ca5481bf05a8c7ba9ea4cfea62ca009dab8b03
parentb82f5958e38665d9ebe3e8f590e4ad72ca4b47c9
librbd: open parent image when opening a child

Extract a helper out of get_parent_info. The parent may become unset
while the child is open, so detect changes in it during ictx_refresh().
Don't watch the parent image, since we only care about the read-only
snapshot the child references, which cannot change.

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