From: Xiubo Li Date: Wed, 17 Jun 2020 02:59:22 +0000 (-0400) Subject: cephfs_features: add metric collection feature support X-Git-Tag: v16.1.0~2033^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d5595b6cac14c81c81e6c82c9e5318ee16930d38;p=ceph.git 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 --- diff --git a/src/mds/cephfs_features.h b/src/mds/cephfs_features.h index 2e32d3bee03..37b0ba6d9ed 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