[PATCH] qemuBlockStorageSourceGetBackendProps: Report errors on all switch cases
Erik Skultety
eskultet at redhat.com
Thu Feb 6 10:04:35 UTC 2020
On Thu, Feb 06, 2020 at 10:24:31AM +0100, Peter Krempa wrote:
> Few switch cases returned failure but didn't report an error. For a
> situation when the backingStore type='volume' was not translated the
> following error would occur:
>
> $ virsh start VM
> error: Failed to start domain VM
> error: An error occurred, but the cause is unknown
>
> After this patch:
>
> $ virsh start VM
> error: Failed to start domain VM
> error: internal error: storage source pool 'tmp' volume 'pull3.qcow2' is not translated
>
> Signed-off-by: Peter Krempa <pkrempa at redhat.com>
Reviewed-by: Erik Skultety <eskultet at redhat.com>
More information about the libvir-list
mailing list