]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mon: add new configuration to limit filesystem xattrs size
authorLuís Henriques <lhenriques@suse.de>
Wed, 1 Jun 2022 16:02:13 +0000 (17:02 +0100)
committerMykola Golub <mgolub@suse.com>
Fri, 3 Nov 2023 16:28:06 +0000 (18:28 +0200)
commitfa30f894de4376916bde9c19dba476b80c057930
treee588d4dfe3f0242f6d06ed3e6081f968920b36f6
parent58d2e6c20cdaf5a80524c8a9cb5390bde3c95a38
mon: add new configuration to limit filesystem xattrs size

This new configuration option will allow to define the maximum size for a
filesystem xattrs blob.  This is a filesystem-wide knob that will replace
the per-MDS mds_max_xattr_pairs_size option.

Note:

The kernel client patch to handle this new configuration was merged before
the corresponding ceph-side pull-request.  This was unfortunate because in
the meantime PR #43284 was merged and the encoding/decoding of
'bal_rank_mask' got in between.  Hence the 'max_xattr_size' is being
encoding/decoded before 'bal_rank_mask'.

URL: https://tracker.ceph.com/issues/55725
Signed-off-by: Luís Henriques <lhenriques@suse.de>
(cherry picked from commit 7b8def5c30b92ec642209f6ab1af312e49343c01)
src/mds/MDSMap.cc
src/mds/MDSMap.h
src/mon/FSCommands.cc
src/mon/MonCommands.h