mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
qemu: backup: Use VIR_ERR_CHECKPOINT_INCONSISTENT when starting a backup
If we don't have a consistent chain of bitmaps for the backup to proceed we'd report VIR_ERR_INVALID_ARG error code, which makes it hard to decide whether an incremental backup makes even sense. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
facfa8262e
commit
e33e89d839
@ -206,7 +206,7 @@ qemuBackupDiskPrepareOneBitmaps(struct qemuBackupDiskData *dd,
|
||||
if (!qemuBlockBitmapChainIsValid(dd->domdisk->src,
|
||||
dd->backupdisk->incremental,
|
||||
blockNamedNodeData)) {
|
||||
virReportError(VIR_ERR_INVALID_ARG,
|
||||
virReportError(VIR_ERR_CHECKPOINT_INCONSISTENT,
|
||||
_("missing or broken bitmap '%s' for disk '%s'"),
|
||||
dd->backupdisk->incremental, dd->domdisk->dst);
|
||||
return -1;
|
||||
|
Loading…
Reference in New Issue
Block a user