]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: differentiate between R/O vs R/W RBD features
authorJason Dillaman <dillaman@redhat.com>
Mon, 3 Nov 2014 21:51:06 +0000 (16:51 -0500)
committerJason Dillaman <dillaman@redhat.com>
Tue, 13 Jan 2015 01:02:25 +0000 (20:02 -0500)
commit6176ec5fde2a68296849fd91f1f7fd50730087a7
tree4ba46c38b73e837687767e84077de023fe148d60
parent544ed961c6d7f7af5d053127169ed6092ca1a1cb
librbd: differentiate between R/O vs R/W RBD features

The new RBD exclusive lock feature should be treated as a
feature that is only applied when the image is opened in
R/W mode.

Older clients will need to handle the updated
cls_rbd::get_features method in order to properly determine
the incompatible features for an image depending on the
current mode.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/cls/rbd/cls_rbd.cc
src/cls/rbd/cls_rbd_client.cc
src/cls/rbd/cls_rbd_client.h
src/include/rbd/features.h
src/librbd/internal.cc
src/test/cls_rbd/test_cls_rbd.cc