]> xenbits.xensource.com Git - libvirt.git/commit
snapshot: Split out virDomainSnapshotRedefineValidate helper
authorEric Blake <eblake@redhat.com>
Thu, 7 Mar 2019 22:12:24 +0000 (16:12 -0600)
committerEric Blake <eblake@redhat.com>
Thu, 7 Mar 2019 23:41:51 +0000 (17:41 -0600)
commit1e90fa89d1b7677fc95c91c7c891ac3203d37631
treedc43ff026540777d5eb56293ae4c874629ba6eab
parent44a9b872e82b26f26123dd6bf775f1ae8a697e43
snapshot: Split out virDomainSnapshotRedefineValidate helper

Pull out the portion of virDomainSnapshotRefinePrep() that deals
with definition sanity into a separate helper routine that can
be reused with bulk redefine, leaving behind only the code
specific to loop checking and in-place updates that are only
needed in single-definition handling.

Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
src/conf/snapshot_conf.c