Allow user to map rbd images with journaling enabled, but there is a warning in demsg: WARNING: kernel journaling is EXPERIMENTAL! Signed-off-by: Dongsheng Yang <dongsheng.yang@xxxxxxxxxxxx> --- drivers/block/rbd.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/block/rbd.c b/drivers/block/rbd.c index 6f31734..db6ca79 100644 --- a/drivers/block/rbd.c +++ b/drivers/block/rbd.c @@ -118,12 +118,14 @@ static int atomic_dec_return_safe(atomic_t *v) #define RBD_FEATURE_LAYERING (1ULL<<0) #define RBD_FEATURE_STRIPINGV2 (1ULL<<1) #define RBD_FEATURE_EXCLUSIVE_LOCK (1ULL<<2) +#define RBD_FEATURE_JOURNALING (1ULL<<6) #define RBD_FEATURE_DATA_POOL (1ULL<<7) #define RBD_FEATURE_OPERATIONS (1ULL<<8) #define RBD_FEATURES_ALL (RBD_FEATURE_LAYERING | \ RBD_FEATURE_STRIPINGV2 | \ RBD_FEATURE_EXCLUSIVE_LOCK | \ + RBD_FEATURE_JOURNALING | \ RBD_FEATURE_DATA_POOL | \ RBD_FEATURE_OPERATIONS) @@ -6437,6 +6439,11 @@ static int rbd_dev_image_probe(struct rbd_device *rbd_dev, int depth) "WARNING: kernel layering is EXPERIMENTAL!"); } + if (rbd_dev->header.features & RBD_FEATURE_JOURNALING) { + rbd_warn(rbd_dev, + "WARNING: kernel journaling is EXPERIMENTAL!"); + } + ret = rbd_dev_probe_parent(rbd_dev, depth); if (ret) goto err_out_probe; -- 1.8.3.1