The function now serves no real purpose.
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
if (qemuDomainDiskBlockJobIsActive(disk))
return NULL;
- if (qemuDomainSupportsCheckpointsBlockjobs(vm) < 0)
- return NULL;
-
if (topSource == disk->src) {
/* XXX Should we auto-pivot when COMMIT_ACTIVE is not specified? */
if (!(flags & VIR_DOMAIN_BLOCK_COMMIT_ACTIVE)) {
}
-/**
- * qemuDomainSupportsCheckpointsBlockjobs:
- * @vm: domain object
- *
- * Checks whether a block job is supported in possible combination with
- * checkpoints (qcow2 bitmaps). Returns -1 if unsupported and reports an error
- * 0 in case everything is supported.
- */
-int
-qemuDomainSupportsCheckpointsBlockjobs(virDomainObj *vm G_GNUC_UNUSED)
-{
- return 0;
-}
-
/**
* qemuDomainInitializePflashStorageSource:
*
qemuDomainValidateActualNetDef(const virDomainNetDef *net,
virQEMUCaps *qemuCaps);
-int
-qemuDomainSupportsCheckpointsBlockjobs(virDomainObj *vm)
- G_GNUC_WARN_UNUSED_RESULT;
-
int
qemuDomainMakeCPUMigratable(virArch arch,
virCPUDef *cpu,
if (virDomainObjCheckActive(vm) < 0)
goto endjob;
- if (qemuDomainSupportsCheckpointsBlockjobs(vm) < 0)
- goto endjob;
-
if (!(disk = qemuDomainDiskByName(vm->def, path)))
goto endjob;
if (virDomainObjCheckActive(vm) < 0)
goto endjob;
- if (qemuDomainSupportsCheckpointsBlockjobs(vm) < 0)
- goto endjob;
-
if (!(disk = qemuDomainDiskByName(vm->def, path)))
goto endjob;
}
/* Handle interlocking with 'checkpoints':
- * - if the VM is online use qemuDomainSupportsCheckpointsBlockjobs
* - if the VM is offline disallow external snapshots as the support for
* propagating bitmaps into the would-be-created overlay is not yet implemented
*/
_("support for offline external snapshots while checkpoint exists was not yet implemented"));
return -1;
}
- } else {
- if (qemuDomainSupportsCheckpointsBlockjobs(vm) < 0)
- return -1;
}
/* Alter flags to let later users know what we learned. */