]> git.proxmox.com Git - qemu-server.git/commit - PVE/QemuServer.pm
do not add unused disk when already as unused on another storage
authorDominik Csapak <d.csapak@proxmox.com>
Thu, 16 Nov 2017 08:20:56 +0000 (09:20 +0100)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Mon, 20 Nov 2017 13:38:48 +0000 (14:38 +0100)
commitc449137a0465a4df195beeb54d61a5dc0a8a3682
treefc65c04a0b1cf1cae5a8493cf849a5350ebca092
parent6a567ae7316f3a8126a5eb08606714c34472bd08
do not add unused disk when already as unused on another storage

when having an unused disk on a storage for which there are multiple
definitions, we added it again on another storage when that storage
was alphabetically before the already existing one

this happens for example when using our automatically generated
ceph storages: 'pool_ct' and 'pool_vm' and having a vm with
an unused disk

with this patch, we also leave the unused disks in the hash

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
PVE/QemuServer.pm