]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
storage: use enum for snapshot driver type
authorEric Blake <eblake@redhat.com>
Tue, 2 Oct 2012 16:57:06 +0000 (10:57 -0600)
committerEric Blake <eblake@redhat.com>
Fri, 19 Oct 2012 23:35:10 +0000 (17:35 -0600)
commit1246640b3d4e1330450a29b8d33472c243b6f6f7
treef54d103737127d33c62bf9c232c9749bef616520
parente5e8d5d0820276751829bc34b8611d2cd9aa5b1b
storage: use enum for snapshot driver type

This is the last use of raw strings for disk formats throughout
the src/conf directory.

* src/conf/snapshot_conf.h (_virDomainSnapshotDiskDef): Store enum
rather than string for disk type.
* src/conf/snapshot_conf.c (virDomainSnapshotDiskDefClear)
(virDomainSnapshotDiskDefParseXML, virDomainSnapshotDefFormat):
Adjust users.
* src/qemu/qemu_driver.c (qemuDomainSnapshotDiskPrepare)
(qemuDomainSnapshotCreateSingleDiskActive): Likewise.
src/conf/snapshot_conf.c
src/conf/snapshot_conf.h
src/qemu/qemu_driver.c