mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 14:15:28 +00:00
qemu: domain: drop qemuDomainSupportsBlockJobs
It always returns true. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
d5654a7537
commit
f1a0d2277c
@ -9855,20 +9855,6 @@ qemuDomainGetMonitor(virDomainObjPtr vm)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* qemuDomainSupportsBlockJobs:
|
|
||||||
* @vm: domain object
|
|
||||||
*
|
|
||||||
* Returns -1 in case when qemu does not support block jobs at all. Otherwise
|
|
||||||
* returns 0.
|
|
||||||
*/
|
|
||||||
int
|
|
||||||
qemuDomainSupportsBlockJobs(virDomainObjPtr vm ATTRIBUTE_UNUSED)
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* qemuFindAgentConfig:
|
* qemuFindAgentConfig:
|
||||||
* @def: domain definition
|
* @def: domain definition
|
||||||
|
@ -821,8 +821,6 @@ int qemuDomainJobInfoToParams(qemuDomainJobInfoPtr jobInfo,
|
|||||||
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2)
|
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2)
|
||||||
ATTRIBUTE_NONNULL(3) ATTRIBUTE_NONNULL(4);
|
ATTRIBUTE_NONNULL(3) ATTRIBUTE_NONNULL(4);
|
||||||
|
|
||||||
int qemuDomainSupportsBlockJobs(virDomainObjPtr vm)
|
|
||||||
ATTRIBUTE_NONNULL(1);
|
|
||||||
bool qemuDomainDiskBlockJobIsActive(virDomainDiskDefPtr disk);
|
bool qemuDomainDiskBlockJobIsActive(virDomainDiskDefPtr disk);
|
||||||
bool qemuDomainHasBlockjob(virDomainObjPtr vm, bool copy_only)
|
bool qemuDomainHasBlockjob(virDomainObjPtr vm, bool copy_only)
|
||||||
ATTRIBUTE_NONNULL(1);
|
ATTRIBUTE_NONNULL(1);
|
||||||
|
@ -17194,9 +17194,6 @@ qemuDomainBlockPullCommon(virQEMUDriverPtr driver,
|
|||||||
if (virDomainObjCheckActive(vm) < 0)
|
if (virDomainObjCheckActive(vm) < 0)
|
||||||
goto endjob;
|
goto endjob;
|
||||||
|
|
||||||
if (qemuDomainSupportsBlockJobs(vm) < 0)
|
|
||||||
goto endjob;
|
|
||||||
|
|
||||||
if (!(disk = qemuDomainDiskByName(vm->def, path)))
|
if (!(disk = qemuDomainDiskByName(vm->def, path)))
|
||||||
goto endjob;
|
goto endjob;
|
||||||
|
|
||||||
@ -17310,9 +17307,6 @@ qemuDomainBlockJobAbort(virDomainPtr dom,
|
|||||||
if (virDomainObjCheckActive(vm) < 0)
|
if (virDomainObjCheckActive(vm) < 0)
|
||||||
goto endjob;
|
goto endjob;
|
||||||
|
|
||||||
if (qemuDomainSupportsBlockJobs(vm) < 0)
|
|
||||||
goto endjob;
|
|
||||||
|
|
||||||
if (!(disk = qemuDomainDiskByName(vm->def, path)))
|
if (!(disk = qemuDomainDiskByName(vm->def, path)))
|
||||||
goto endjob;
|
goto endjob;
|
||||||
|
|
||||||
@ -17461,9 +17455,6 @@ qemuDomainGetBlockJobInfo(virDomainPtr dom,
|
|||||||
if (virDomainObjCheckActive(vm) < 0)
|
if (virDomainObjCheckActive(vm) < 0)
|
||||||
goto endjob;
|
goto endjob;
|
||||||
|
|
||||||
if (qemuDomainSupportsBlockJobs(vm) < 0)
|
|
||||||
goto endjob;
|
|
||||||
|
|
||||||
if (!(disk = virDomainDiskByName(vm->def, path, true))) {
|
if (!(disk = virDomainDiskByName(vm->def, path, true))) {
|
||||||
virReportError(VIR_ERR_INVALID_ARG,
|
virReportError(VIR_ERR_INVALID_ARG,
|
||||||
_("disk %s not found in the domain"), path);
|
_("disk %s not found in the domain"), path);
|
||||||
@ -17545,9 +17536,6 @@ qemuDomainBlockJobSetSpeed(virDomainPtr dom,
|
|||||||
if (virDomainObjCheckActive(vm) < 0)
|
if (virDomainObjCheckActive(vm) < 0)
|
||||||
goto endjob;
|
goto endjob;
|
||||||
|
|
||||||
if (qemuDomainSupportsBlockJobs(vm) < 0)
|
|
||||||
goto endjob;
|
|
||||||
|
|
||||||
if (!(disk = qemuDomainDiskByName(vm->def, path)))
|
if (!(disk = qemuDomainDiskByName(vm->def, path)))
|
||||||
goto endjob;
|
goto endjob;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user