Please consider this case, when we rbd map an image with layering feature, and enable exclusive-lock and object-map feature by rbd feature enable command. The any writing via kernel rbd will make the object-map invalid. So let's set the rbd device read-only when we detect unsupported feature enabled. Dongsheng Yang (2): rbd: return the features to caller even if there is unsupported bits rbd: refresh features and set the disk to readonly if there is unsupported bit drivers/block/rbd.c | 41 ++++++++++++++++++++--------------------- 1 file changed, 20 insertions(+), 21 deletions(-) -- 1.8.3.1 -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html