]> git.proxmox.com Git - pve-storage.git/commit
fix #585: remove leftover disks/directory after VM creation failed
authorChristian Ebner <c.ebner@proxmox.com>
Mon, 4 Mar 2019 15:47:06 +0000 (16:47 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 5 Mar 2019 09:36:51 +0000 (10:36 +0100)
commita8ec2f02271ac6892eaa25611b62a1e3202cdf6c
treed876d3a64e236a32a7e82c96c036d9ae98ed1129
parentdeea35a2e764479612f2440998cc350f67efb757
fix #585: remove leftover disks/directory after VM creation failed

When trying to create a qcow2 disk image with a size larger than available on the
storage, this will fail.
As qemu-img does not clean up the disk afterwards, it needs to be deleted
explicitly. Further, the vmid folder is cleaned up once it is empty.

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
PVE/Storage/GlusterfsPlugin.pm
PVE/Storage/Plugin.pm