]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: checkpoint: Don't require <domain> when redefining checkpoints
authorPeter Krempa <pkrempa@redhat.com>
Wed, 2 Dec 2020 13:18:40 +0000 (14:18 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 4 Dec 2020 15:15:03 +0000 (16:15 +0100)
commitabf12f071b17d8be51ce5fe368175f2f5612eafe
treea5f8a90f1fc18b94e442434195dd51fd5922d89b
parent392eacfeb1c924a7532955d8866677d905fa74fa
conf: checkpoint: Don't require <domain> when redefining checkpoints

The domain definition stored with a checkpoint isn't used currently
apart from matching disks when creating a new checkpoints.

As some users of the incremental backup API want to provide backups in
offline mode under their control (obviously while compying with our
documentation on how the on-disk state should be handled) and then want
to define the checkpoint for live use, supplying a <domain> sub-element
is overly complex and not actually needed by the code.

Relax the restriction when re-defining a checkpoint so that <domain> is
not necessary and add (alibistic) documentation saying that future
actions may not work if it's missing.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
docs/formatcheckpoint.rst
src/conf/checkpoint_conf.c