]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: checkpoint: Add a flag storing whether disk 'size' is valid
authorPeter Krempa <pkrempa@redhat.com>
Wed, 1 Jul 2020 14:58:29 +0000 (16:58 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 7 Jul 2020 10:58:19 +0000 (12:58 +0200)
commita94997c4769ac376fc1fcf7111c6d8f5898579ea
treef4acf46e257d61816cb17b6a68b9b9cfe8ea7a01
parent459a60823e3f744239732c00bdd7b87a0252a4d2
conf: checkpoint: Add a flag storing whether disk 'size' is valid

Avoid printing '0' size in case when we weren't able to determine the
backup size by adding a flag whether the size is valid and interlock
printing of the field according to the flag.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
src/conf/checkpoint_conf.c
src/conf/checkpoint_conf.h
tests/qemudomaincheckpointxml2xmltest.c