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>
potentially different from that of the parent image. The efficient
copy-on-write semantics intrinsic to unformatted (regular) cloned images
are retained.
+* 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.1
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