]> git.proxmox.com Git - qemu-server.git/commit
fix #2173: use qemu-img to check cloudinit disk existence
authorMira Limbeck <m.limbeck@proxmox.com>
Tue, 30 Apr 2019 12:20:47 +0000 (14:20 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 30 Apr 2019 12:53:28 +0000 (12:53 +0000)
commitb56d56cf3abf00275200e698038875113d7ccd25
treeb769116c5a4c8a6f3f874fb0bfc222459db67ab9
parent5294c110bb20a79dde9c5553833e60c910dc5b36
fix #2173: use qemu-img to check cloudinit disk existence

use file_size_info to check for existence of cloudinit disk instead of
'-e'. It uses `qemu-img info` to get some file info, which can handle
rbd, and various other paths for volumes not exposed as normal file
or not mapped, yet.

this addresses a problem with rbd where the path returned available
is not checkable with '-e'.

Any size > 0 is interpreted as the image existing.

Signed-off-by: Mira Limbeck <m.limbeck@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/QemuServer/Cloudinit.pm