mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-21 12:05:17 +00:00
qemu: Fix name comparison in qemuMonitorJSONBlockIoThrottleInfo()
The string comparison logic was inverted and matched the first drive that does *not* have the name we search for. Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> (cherry picked from commit 23d47b33a2f8b524c32d556d6d55a7ccb0c5903a)
This commit is contained in:
parent
39a427e8ba
commit
6ca5649625
@ -3518,7 +3518,7 @@ qemuMonitorJSONBlockIoThrottleInfo(virJSONValuePtr result,
|
|||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (STREQ(current_dev, device))
|
if (STRNEQ(current_dev, device))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
found = 1;
|
found = 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user