]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuBlockJobInfoTranslate: Take job type from qemuBlockJobDataPtr
authorPeter Krempa <pkrempa@redhat.com>
Mon, 7 Dec 2020 16:53:21 +0000 (17:53 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 8 Dec 2020 14:13:29 +0000 (15:13 +0100)
commit0b927156bce2e1edf82186a1f34f74beec5312a2
tree9bc14c624644f6b9146cf29d16736bb0bc05b562
parent5c004dd16f1bb87287a5bd936b05f36e188f50a6
qemuBlockJobInfoTranslate: Take job type from qemuBlockJobDataPtr

Commit f5e8715a8b4 added logic which adds some fake job info when qemu
didn't return anything but in such case the job type would not be set.

Since we already have the proper job type recorded in qemuBlockJobDataPtr
which the caller fetched, we can use this it and also remove the lookup
from the disk which was necessary prior to the conversion to
qemuBlockJobDataPtr.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_driver.c