mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-10 21:51:31 +00:00
qemu: end the job when try to blockcopy to non-file destination
Blockcopy to non-file destination is not supported according the code, but a 'goto endjob' is missed after checking the destination. This leads to calling drive-mirror with wrong parameters. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1206406 Signed-off-by: Shanzhi Yu <shyu@redhat.com> Signed-off-by: Ján Tomko <jtomko@redhat.com> (cherry picked from commit c5fbad66234b1b1a9afc36ef2fe3a3d903886386)
This commit is contained in:
parent
cb4fd344b4
commit
52ef86afbe
@ -16166,6 +16166,7 @@ qemuDomainBlockCopyCommon(virDomainObjPtr vm,
|
||||
if (!virStorageSourceIsLocalStorage(mirror)) {
|
||||
virReportError(VIR_ERR_ARGUMENT_UNSUPPORTED, "%s",
|
||||
_("non-file destination not supported yet"));
|
||||
goto endjob;
|
||||
}
|
||||
if (stat(mirror->path, &st) < 0) {
|
||||
if (errno != ENOENT) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user