[PATCH] qemuBlockJobInfoTranslate: Take job type from qemuBlockJobDataPtr
Michal Privoznik
mprivozn at redhat.com
Tue Dec 8 10:02:19 UTC 2020
On 12/7/20 5:57 PM, Peter Krempa wrote:
> 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 at redhat.com>
> ---
>
> I've wanted to fix it before pushing what would become commit f5e8715a8b4
> but Michal accidentally pushed it with one of his patches.
>
> src/qemu/qemu_driver.c | 11 ++++-------
> 1 file changed, 4 insertions(+), 7 deletions(-)
Reviewed-by: Michal Privoznik <mprivozn at redhat.com>
Michal
More information about the libvir-list
mailing list