From: Xiubo Li Date: Wed, 23 Mar 2022 02:05:32 +0000 (+0800) Subject: mds-client: make the fake inos option unchangeable in runtime X-Git-Tag: v17.2.4~72^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=61fbc9a273af9d7ef91056e0f4fcc2a09e5cd559;p=ceph.git mds-client: make the fake inos option unchangeable in runtime If the flags is empty then in option.h in can_update_at_runtime() it will return true. That means this opetion could be changed in runtime, which is buggy. Because if this is false, ceph-fuse will use its own fake inos instead of libcephfs'. If this is changed during runtime, we will hit inos dosn't exist assert bugs. Fixes: https://tracker.ceph.com/issues/54653 Signed-off-by: Xiubo Li (cherry picked from commit 28d17ff81a93d5442d2107abbd51296ac822073a) --- diff --git a/src/common/options/mds-client.yaml.in b/src/common/options/mds-client.yaml.in index 0f8ddc421cb..fa9327e5e3a 100644 --- a/src/common/options/mds-client.yaml.in +++ b/src/common/options/mds-client.yaml.in @@ -484,6 +484,9 @@ options: default: false services: - mds_client + flags: + - startup + - no_mon_update with_legacy: true - name: client_fs type: str