The maximum size of the last block without the header along with
a truncate request when the fscrypt is enabled. Default value is
4KB.
Signed-off-by: Xiubo Li <xiubli@redhat.com>
- mds
flags:
- runtime
+- name: mds_fscrypt_last_block_max_size
+ type: size
+ level: advanced
+ desc: maximum size of the last block without the header along with a truncate
+ request when the fscrypt is enabled.
+ default: 4_K
+ services:
+ - mds
+ flags:
+ - runtime
- name: mds_valgrind_exit
type: bool
level: dev
if (changed.count("mds_alternate_name_max")) {
alternate_name_max = g_conf().get_val<Option::size_t>("mds_alternate_name_max");
}
+ if (changed.count("mds_fscrypt_last_block_max_size")) {
+ fscrypt_last_block_max_size = g_conf().get_val<Option::size_t>("mds_fscrypt_last_block_max_size");
+ }
if (changed.count("mds_dir_max_entries")) {
dir_max_entries = g_conf().get_val<uint64_t>("mds_dir_max_entries");
dout(20) << __func__ << " max entries per directory changed to "
double caps_throttle_retry_request_timeout;
size_t alternate_name_max = g_conf().get_val<Option::size_t>("mds_alternate_name_max");
+ size_t fscrypt_last_block_max_size = g_conf().get_val<Option::size_t>("mds_fscrypt_last_block_max_size");
};
static inline constexpr auto operator|(Server::RecallFlags a, Server::RecallFlags b) {