From d5595b6cac14c81c81e6c82c9e5318ee16930d38 Mon Sep 17 00:00:00 2001 From: Xiubo Li Date: Tue, 16 Jun 2020 22:59:22 -0400 Subject: [PATCH] cephfs_features: add metric collection feature support In client side we need to known whether mds support the metric collection or not, or when mds server receieves the metric message from client side and if it couldn't recognise, the mgr will close the socket connection directly. Fixes: https://tracker.ceph.com/issues/46041 Signed-off-by: Xiubo Li --- src/mds/cephfs_features.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mds/cephfs_features.h b/src/mds/cephfs_features.h index 2e32d3bee0342..37b0ba6d9ed4d 100644 --- a/src/mds/cephfs_features.h +++ b/src/mds/cephfs_features.h @@ -34,6 +34,7 @@ #define CEPHFS_FEATURE_NAUTILUS 12 #define CEPHFS_FEATURE_DELEG_INO 13 #define CEPHFS_FEATURE_OCTOPUS 13 +#define CEPHFS_FEATURE_METRIC_COLLECT 14 #define CEPHFS_FEATURES_ALL { \ 0, 1, 2, 3, 4, \ @@ -48,6 +49,7 @@ CEPHFS_FEATURE_NAUTILUS, \ CEPHFS_FEATURE_DELEG_INO, \ CEPHFS_FEATURE_OCTOPUS, \ + CEPHFS_FEATURE_METRIC_COLLECT, \ } #define CEPHFS_FEATURES_MDS_SUPPORTED CEPHFS_FEATURES_ALL -- 2.39.5