Refuse renaming a pool to the name of another pool in vitastor-cli #95

Closed
koolkhel wants to merge 1 commits from koolkhel/vitastor:cli-pool-rename into master

1 Commits

Author SHA1 Message Date
a763d2d467 Refuse renaming a pool to the name of another pool in vitastor-cli
modify-pool --name did not check the new name against other pools, so
two pools could end up with the same name, and commands addressing a
pool by name then picked either of them. Fail with EEXIST, as
create-pool does. The check uses the pool list that the CAS write is
based on, so a concurrent rename or create is caught by the retry.
2026-10-20 10:57:35 +03:00