]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Refactor tray_status handling
authorPeter Krempa <pkrempa@redhat.com>
Thu, 5 Feb 2026 13:31:41 +0000 (14:31 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 12 Feb 2026 15:45:34 +0000 (16:45 +0100)
commit40b7e2a39bd2dd4d2802d32557c755dc6c143378
treee5ad5f6641efd66926f71242b7a38acfb4c4afc3
parentb9b9092c9c1f8b42e311c524d9fc4a8e73ae28a6
qemu: Refactor tray_status handling

Modify the monitor code to directly return values from 'virDomainDiskTray'
enum instead of two bools.

This allows simplification of the other code:
 - qemuProcessRefreshDiskProps just assigns the value, thus can be deleted
 - old_tray_status is no longer needed as we can directly access the
   disk status instead and assign later

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_domain.h
src/qemu/qemu_monitor_json.c
src/qemu/qemu_process.c
src/qemu/qemu_process.h
tests/qemumonitorjsontest.c