Re: [RFC v3] external (pull) backup API

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 05/17/2018 05:43 PM, Eric Blake wrote:
Here's my updated counterproposal for a backup API.


/**
  * virDomainBackupBegin:
  * @domain: a domain object
  * @diskXml: description of storage to utilize and expose during
  *           the backup, or NULL
  * @checkpointXml: description of a checkpoint to create, or NULL
  * @flags: not used yet, pass 0
  *

Actually, since I'm taking two XML documents, this should really have a VIR_DOMAIN_BACKUP_VALIDATE flag for comparison of the XML against the schema.


/**
  * virDomainCheckpointCreateXML:
  * @domain: a domain object
  * @xmlDesc: description of the checkpoint to create
  * @flags: bitwise-OR of supported virDomainCheckpointCreateFlags
  *

  */
virDomainCheckpointPtr
virDomainCheckpointCreateXML(virDomainPtr domain, const char *xmlDesc,
                              unsigned int flags);

Ditto. And this was copied from virDomainSnapshotCreateXML, which should also gain a VALIDATE flag.

--
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux