mds_max_retries_on_remount_failure option is used by Client.cc only.
Fixes: https://tracker.ceph.com/issues/56532
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit
b9edab80f048fee09b82cdd4ec58fa37bd937ded)
namespaces was added to RBD in Nautilus 14.2.0 and it has been possible to
map and unmap images in namespaces using the `image-spec` syntax since then
but the corresponding option available in most other commands was missing.
+* CEPHFS: Rename the `mds_max_retries_on_remount_failure` option to
+ `client_max_retries_on_remount_failure` and move it from mds.yaml.in to
+ mds-client.yaml.in because this option was only used by MDS client from its
+ birth.
>=17.2.4
--------
std::pair<int, bool> Client::_do_remount(bool retry_on_error)
{
- uint64_t max_retries = cct->_conf.get_val<uint64_t>("mds_max_retries_on_remount_failure");
+ uint64_t max_retries = cct->_conf.get_val<uint64_t>("client_max_retries_on_remount_failure");
bool abort_on_failure = false;
errno = 0;
services:
- mds_client
with_legacy: true
+- name: client_max_retries_on_remount_failure
+ type: uint
+ level: advanced
+ desc: number of consecutive failed remount attempts for invalidating kernel dcache
+ after which client would abort.
+ default: 5
+ services:
+ - mds_client
- name: client_die_on_failed_remount
type: bool
level: dev
default: 0
services:
- mds
-- name: mds_max_retries_on_remount_failure
- type: uint
- level: advanced
- desc: number of consecutive failed remount attempts for invalidating kernel dcache
- after which client would abort.
- default: 5
- services:
- - mds
- name: mds_dump_cache_threshold_formatter
type: size
level: dev