mirror of
https://github.com/ceph/ceph
synced 2025-02-24 03:27:10 +00:00
mds: do not allow setting a reserved feature by name
Fixes: https://tracker.ceph.com/issues/48661 Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
This commit is contained in:
parent
83e91b6cca
commit
15ba9dc944
@ -35,6 +35,9 @@ std::string_view cephfs_feature_name(size_t id)
|
||||
|
||||
int cephfs_feature_from_name(std::string_view name)
|
||||
{
|
||||
if (name == "reserved"sv) {
|
||||
return -1;
|
||||
}
|
||||
for (size_t i = 0; i < feature_names.size(); ++i) {
|
||||
if (name == feature_names[i])
|
||||
return i;
|
||||
|
Loading…
Reference in New Issue
Block a user