]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Check empty drives in block I/O throttle API
authorFabian Leditzky <fabian@ldsoft.dev>
Tue, 21 Jan 2025 14:33:25 +0000 (14:33 +0000)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 29 Jan 2025 15:15:29 +0000 (16:15 +0100)
commit00f9f2ca1f01d864297edc5618410127685e552d
treeacf024f8fdb2c4670eb1eb78c743707e4df42c74
parentfce24e433b5daa051c9aad0964003cb78bdc268c
qemu: Check empty drives in block I/O throttle API

Provide a proper user facing error when attempting to query block
I/O throttling settings for an empty drive. Without this patch, a less
meaningful internal error produced by qemuMonitorJSONBlockIoThrottleInfo
would be propagated to the user.

Signed-off-by: Fabian Leditzky <fabian@ldsoft.dev>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
src/qemu/qemu_driver.c