mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 03:12:22 +00:00
qemu: monitor: Remove unused 'locked' property from struct qemuDomainDiskInfo
We don't use it for anything useful so it does not make much sense to extract it. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
fa23ec24a1
commit
70644a8ba2
@ -438,7 +438,6 @@ struct _qemuDomainVcpuPrivate {
|
||||
|
||||
struct qemuDomainDiskInfo {
|
||||
bool removable;
|
||||
bool locked;
|
||||
bool tray;
|
||||
bool tray_open;
|
||||
bool empty;
|
||||
|
@ -2243,13 +2243,6 @@ int qemuMonitorJSONGetBlockInfo(qemuMonitorPtr mon,
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
if (virJSONValueObjectGetBoolean(dev, "locked", &info->locked) < 0) {
|
||||
virReportError(VIR_ERR_INTERNAL_ERROR,
|
||||
_("cannot read %s value"),
|
||||
"locked");
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
/* 'tray_open' is present only if the device has a tray */
|
||||
if (virJSONValueObjectGetBoolean(dev, "tray_open", &info->tray_open) == 0)
|
||||
info->tray = true;
|
||||
|
@ -1647,7 +1647,6 @@ testQemuMonitorJSONqemuMonitorJSONGetBlockInfo(const void *data)
|
||||
if (VIR_ALLOC(info) < 0)
|
||||
goto cleanup;
|
||||
|
||||
info->locked = true;
|
||||
info->removable = true;
|
||||
info->tray = true;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user