mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-30 12:16:03 +09:00
A storage pool named "public" or ending in "-lock", "-readonly" or "-public" was refused outright. The check that compares the class names each pool actually renders, against each other and against the instance's base classes, already refuses every one of those names that clashes with something: "public", "lock" and "readonly" clash with the base classes, and "x-public", "x-lock" or "x-readonly" clash only when a pool "x" exists. The suffix list on top of it refused names that clash with nothing, such as "cdn-public" with no pool "cdn", and had to grow, as a breaking change, with every new class variant. Drop the suffix list and keep the rendered-name check as the only rule. This accepts names that were refused before and refuses none that were accepted. Assisted-by: LLM Signed-off-by: Aleksei Sviridkin <f@lex.la>