]> xenbits.xensource.com Git - libvirt.git/commit
snapshot: simplify redefinition of disk snapshot
authorEric Blake <eblake@redhat.com>
Thu, 6 Oct 2011 21:57:00 +0000 (15:57 -0600)
committerEric Blake <eblake@redhat.com>
Fri, 7 Oct 2011 14:29:59 +0000 (08:29 -0600)
commitfd52b968b5009b6a1316ff62d511f2835bca6d11
tree10def9ffd220b93835ddf2c2e130ef8de21b52d7
parent731f9a5e5613c626249a43e07e288c89fbb4cf0c
snapshot: simplify redefinition of disk snapshot

Redefining disk-only snapshot xml should work even if the user
did not explicitly pass VIR_DOMAIN_SNAPSHOT_CREATE_DISK_ONLY;
the flag is only required for conditions where the <state>
subelement is not already present in parsing (that is, defining
a new snapshot).

Also, fix the error code of some user-visible errors (the remaining
VIR_ERR_INTERNAL_ERROR should not be user-visible, since parsing
of <active> is only done from internal code).

* src/conf/domain_conf.c (virDomainSnapshotDefParseString): Allow
disks during redefinition of disk snapshot.
src/conf/domain_conf.c