]> git.proxmox.com Git - pve-container.git/commit
destroy: remove pending volumes as well
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Wed, 29 Sep 2021 09:45:06 +0000 (11:45 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 30 Sep 2021 15:36:38 +0000 (17:36 +0200)
commit6cac5615c8ba6824dafabf5727e5bb9cb7ab0ff2
treeab5c1195f8b52f9dc89574956f726bdda903ed92
parent692c79d9544cf037e8ccf664b63eeb5a07e09c92
destroy: remove pending volumes as well

if a volume is only referenced in the pending section of a config it was
previously not removed when removing the CT, unless the non-default
'remove unreferenced disks' option was enabled.

keeping track of volume IDs which we attempt to remove gets rid of false
warnings in case a volume is referenced both in the config and the
pending section, or multiple times in the config for other reasons.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
src/PVE/LXC.pm