mirror of
https://git.proxmox.com/git/proxmox-backup
synced 2025-10-04 05:45:06 +00:00
![]() Empty backup groups are not visible in the API or GUI. This led to a confusing issue where users were unable to create a group because it already existed and was still owned by another user. Resolve this issue by removing the group if its last snapshot is removed. Also fixes an issue where removing a group used the non-atomic `remove_dir_all()` function when destroying a group unconditionally. This could lead to two different threads suddenly holding a lock to the same group. Make sure that the new locking mechanism is used, which prevents that, before removing the group. This is also a bit more conservative now, as it specifically removes the owner file and group directory separately to avoid accidentally removing snapshots in case we made an oversight. Signed-off-by: Shannon Sterz <s.sterz@proxmox.com> |
||
---|---|---|
.. | ||
examples | ||
src | ||
Cargo.toml |