]> git.proxmox.com Git - qemu-server.git/commit
create_efidisk: poll the real size after volume creation
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 4 Dec 2019 17:40:31 +0000 (18:40 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 4 Dec 2019 17:42:27 +0000 (18:42 +0100)
commit340dbcf730b05d2e2e5ff2a40926c9c1d63356c1
tree7cc78777b7a383b0c293df436904740ccbf4e98b
parentdad06e20686da658b9f905ee4103de073b2edfb7
create_efidisk: poll the real size after volume creation

some storage backends have bigger granularity than the default 128k
size from the EFIVARS template file, so we actually need to poll the
real created disk size, as it will be used to create the target
volume for local storage migration on running VMs, if it's to small
the target will be to small and migration will fail.

Just a fix for newly created EFIDISKS, for others we need to rescan
the size after we've got the migrate lock and write the updated info
out, so that the target node has the correct one (protected from
migrate lock).

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/QemuServer.pm