[libvirt] [PATCH 10/13] qemu: snapshot: Don't overload 'ret' in qemuDomainSnapshotCreateDiskActive

Ján Tomko jtomko at redhat.com
Sat Jun 8 14:18:19 UTC 2019


On Wed, Jun 05, 2019 at 05:28:32PM +0200, Peter Krempa wrote:
>Introduce 'rc' for collecting state from monitor commands so that we can
>initialize 'ret' to -1. This also fixes few cases which could return 0
>from the fucntion despite an error condition.

function

>
>Signed-off-by: Peter Krempa <pkrempa at redhat.com>
>---
> src/qemu/qemu_driver.c | 23 ++++++++++++-----------
> 1 file changed, 12 insertions(+), 11 deletions(-)
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20190608/2afb81c3/attachment-0001.sig>


More information about the libvir-list mailing list