]> git.proxmox.com Git - qemu-server.git/commit
create_disks: refactor out and improve efidisk creation
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 11 Sep 2017 06:40:28 +0000 (08:40 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 11 Sep 2017 08:04:46 +0000 (10:04 +0200)
commit3e1f112286dc554bdf245e950b512842e66b70b7
treebda62e1d2eef5f4a1e97b0907a91fb2ef5457b65
parenta1d8c038c58137050c29b697d6d80de902a59892
create_disks: refactor out and improve efidisk creation

factor out code in a new create_efidisk submethod, as else this code
is hardly readable as the efidisk0 case is a special case. Refer from
putting all this specialised handling directly to the much shorter
code for all other cases.

Also the disk was created with a specific format and then a format
detection on the newly created disk was done, which is pretty
useless, clear that up.

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