rbd: ask for a weaker incompat mask for read-only mappings
authorIlya Dryomov <idryomov@gmail.com>
Tue, 5 Nov 2019 14:38:46 +0000 (15:38 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 25 Nov 2019 10:44:03 +0000 (11:44 +0100)
commit196e2d6d0252d37be385c73f64fc8f5787a52066
tree0af541c1cd7a1dc4fc2f1c2364c993f72e01cb48
parentfa58bcad90446a8b30bf0d7f3827844bff30ff59
rbd: ask for a weaker incompat mask for read-only mappings

For a read-only mapping, ask for a set of features that make the image
only unwritable rather than both unreadable and unwritable by a client
that doesn't understand them.  As of today, the difference between them
for krbd is journaling (JOURNALING) and live migration (MIGRATING).

get_features method supports read_only parameter since hammer, ceph.git
commit 6176ec5fde2a ("librbd: differentiate between R/O vs R/W RBD
features").

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
drivers/block/rbd.c