]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: add and use a test_features() helper
authorJosh Durgin <jdurgin@redhat.com>
Tue, 24 Feb 2015 02:46:26 +0000 (18:46 -0800)
committerJosh Durgin <jdurgin@redhat.com>
Wed, 25 Feb 2015 23:41:54 +0000 (15:41 -0800)
commita94ceb608857c48f2237704bf60bd3e384feedb8
treea1aeb34a0934a1aa92ab917125b67d934a31f244
parentcffd93a32f7fdb0224b5eca0ce9c46a7fc1381a4
librbd: add and use a test_features() helper

This gets the appropriate locks, and checks the currently open
snapshot instead of head.  Looking up features by snap_id prepares us
for future addition or removal of e.g. an object map throughout the
life of an image.

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
src/librbd/ImageCtx.cc
src/librbd/ObjectMap.cc
src/librbd/internal.cc