[libvirt] [PATCH 02/10] conf: snapshot: don't pass flags from different family

Ján Tomko jtomko at redhat.com
Tue Feb 5 12:47:14 UTC 2019


On Thu, Dec 27, 2018 at 01:20:44PM +0300, Nikolay Shirokovskiy wrote:
>virDomainDiskSourceParse expects VIR_DOMAIN_DEF_PARSE_* values
>in @flags and we pass VIR_DOMAIN_SNAPSHOT_PARSE_* values. Fortunately
>sources of type 'file' and 'block' do not take flags into account
>and for source of type 'network' flags only make difference for
>tlsFromConfig atribute which is never passed I guess and never

"I guess" does not sound comforting.

How about:
which is only formatted for the status XML (with the
VIR_DOMAIN_DEF_PARSE_STATUS flag), not the domain definition inside
the snapshot XML, which uses VIR_DOMAIN_DEF_FORMAT_INACTIVE.

>used.
>
>Signed-off-by: Nikolay Shirokovskiy <nshirokovskiy at virtuozzo.com>
>---
> src/conf/snapshot_conf.c | 5 ++---
> 1 file changed, 2 insertions(+), 3 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/20190205/07a05d4f/attachment-0001.sig>


More information about the libvir-list mailing list