]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cephfs_features: add metric collection feature support 35608/head
authorXiubo Li <xiubli@redhat.com>
Wed, 17 Jun 2020 02:59:22 +0000 (22:59 -0400)
committerXiubo Li <xiubli@redhat.com>
Wed, 17 Jun 2020 03:07:47 +0000 (23:07 -0400)
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 <xiubli@redhat.com>
src/mds/cephfs_features.h

index 2e32d3bee0342e2631ac9a8d2f7bf2d59c717f46..37b0ba6d9ed4df9607328b72c6f6011d4f71e621 100644 (file)
@@ -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