Re: [pve-devel] [PATCH container] Drop used unused volumes when writing config

2016-03-01 Thread Wolfgang Bumiller
Should we then drop the equivalent part in update_pct_config()? (Only the removal at the end. Its data ($used_volids) is still required to prevent accidental deletion of volumes.) On Tue, Mar 01, 2016 at 09:59:11AM +0100, Fabian Grünbichler wrote: > This enables us to add unused volumes without ca

[pve-devel] [PATCH container] Drop used unused volumes when writing config

2016-03-01 Thread Fabian Grünbichler
This enables us to add unused volumes without calling is_volume_in_use and mimics the behaviour in QemuServer.pm --- Because is_volume_in_use has different signatures in LXC and QemuServer.pm, this change allows us to merge more of snapshot_delete into the common code base. src/PVE/LXC.pm | 25 ++