]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuProcessRefreshDisks: Don't skip filling of disk information if tray state didn...
authorPeter Krempa <pkrempa@redhat.com>
Thu, 9 Feb 2023 08:40:32 +0000 (09:40 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 9 Feb 2023 09:17:08 +0000 (10:17 +0100)
commit86cfe93ef7fdc2d665a2fc88b79af89e7978ba78
treeb097af92ede3a6f9866f835a859b14125819399b
parente4cf477701bb87510822ea17bb5d634a20203d5f
qemuProcessRefreshDisks: Don't skip filling of disk information if tray state didn't change

Commit 5ef2582646eb98 added emitting of even when refreshign disk state,
where it wanted to avoid sending the event if disk state didn't change.
This was achieved by using 'continue' in the loop filling the
information. Unfortunately this skips extraction of whether the device
has a tray which is propagated into internal structures, which in turn
broke cdrom media change as the code thought there's no tray for the
device.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2166411
Fixes: 5ef2582646eb98af208ce37355f82bdef39931fa
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Kristina Hanicova <khanicov@redhat.com>
src/qemu/qemu_process.c