summaryrefslogtreecommitdiffstats
path: root/src/mds/Server.h
diff options
context:
space:
mode:
authorLuís Henriques <lhenriques@suse.de>2022-03-09 12:35:09 +0100
committerLuís Henriques <lhenriques@suse.de>2022-03-09 15:18:54 +0100
commit3ecf2a58999a9893d320c8682a49eb56e25f2389 (patch)
tree4aa18a713965457d1c3b02b5ad0c4b3f0cc6c9ac /src/mds/Server.h
parentMerge pull request #44985 from rhcs-dashboard/dashboard-turns-telemetry-off (diff)
downloadceph-3ecf2a58999a9893d320c8682a49eb56e25f2389.tar.xz
ceph-3ecf2a58999a9893d320c8682a49eb56e25f2389.zip
mds: limit the snapshot names to 240 characters
Without this limitation, the long snapshot names (those starting with '_') may exceed the NAME_MAX size. While there, document the 2 limitations to snapshot names. Signed-off-by: Luís Henriques <lhenriques@suse.de>
Diffstat (limited to 'src/mds/Server.h')
-rw-r--r--src/mds/Server.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mds/Server.h b/src/mds/Server.h
index 13e3d66d14c..f172147936b 100644
--- a/src/mds/Server.h
+++ b/src/mds/Server.h
@@ -459,6 +459,8 @@ private:
bool replay_unsafe_with_closed_session = false;
double cap_revoke_eviction_timeout = 0;
uint64_t max_snaps_per_dir = 100;
+ // long snapshot names have the following format: "_<SNAPSHOT-NAME>_<INODE-NUMBER>"
+ uint64_t snapshot_name_max = NAME_MAX - 1 - 1 - 13;
unsigned delegate_inos_pct = 0;
uint64_t dir_max_entries = 0;
int64_t bal_fragment_size_max = 0;