mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-21 20:15:17 +00:00
virDomainSnapshotAlignDisks: Convert @default_snapshot to virDomainSnapshotLocation
Use the appropriate type for the variable and fix all callers. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
94686f1919
commit
311b300d85
@ -473,7 +473,7 @@ virDomainSnapshotRedefineValidate(virDomainSnapshotDef *def,
|
||||
virDomainXMLOption *xmlopt,
|
||||
unsigned int flags)
|
||||
{
|
||||
int align_location = VIR_DOMAIN_SNAPSHOT_LOCATION_INTERNAL;
|
||||
virDomainSnapshotLocation align_location = VIR_DOMAIN_SNAPSHOT_LOCATION_INTERNAL;
|
||||
bool align_match = true;
|
||||
bool external = def->state == VIR_DOMAIN_SNAPSHOT_DISK_SNAPSHOT ||
|
||||
virDomainSnapshotDefIsExternal(def);
|
||||
@ -640,7 +640,7 @@ virDomainSnapshotDefAssignExternalNames(virDomainSnapshotDef *def)
|
||||
*/
|
||||
int
|
||||
virDomainSnapshotAlignDisks(virDomainSnapshotDef *snapdef,
|
||||
int default_snapshot,
|
||||
virDomainSnapshotLocation default_snapshot,
|
||||
bool require_match)
|
||||
{
|
||||
virDomainDef *domdef = snapdef->parent.dom;
|
||||
|
@ -126,7 +126,7 @@ char *virDomainSnapshotDefFormat(const char *uuidstr,
|
||||
virDomainXMLOption *xmlopt,
|
||||
unsigned int flags);
|
||||
int virDomainSnapshotAlignDisks(virDomainSnapshotDef *snapshot,
|
||||
int default_snapshot,
|
||||
virDomainSnapshotLocation default_snapshot,
|
||||
bool require_match);
|
||||
|
||||
bool virDomainSnapshotDefIsExternal(virDomainSnapshotDef *def);
|
||||
|
@ -1630,7 +1630,7 @@ qemuSnapshotCreateAlignDisks(virDomainObj *vm,
|
||||
{
|
||||
g_autofree char *xml = NULL;
|
||||
qemuDomainObjPrivate *priv = vm->privateData;
|
||||
int align_location = VIR_DOMAIN_SNAPSHOT_LOCATION_INTERNAL;
|
||||
virDomainSnapshotLocation align_location = VIR_DOMAIN_SNAPSHOT_LOCATION_INTERNAL;
|
||||
bool align_match = true;
|
||||
|
||||
/* Easiest way to clone inactive portion of vm->def is via
|
||||
|
@ -8717,7 +8717,7 @@ testDomainSnapshotAlignDisks(virDomainObj *vm,
|
||||
virDomainSnapshotDef *def,
|
||||
unsigned int flags)
|
||||
{
|
||||
int align_location = VIR_DOMAIN_SNAPSHOT_LOCATION_INTERNAL;
|
||||
virDomainSnapshotLocation align_location = VIR_DOMAIN_SNAPSHOT_LOCATION_INTERNAL;
|
||||
bool align_match = true;
|
||||
|
||||
if (flags & VIR_DOMAIN_SNAPSHOT_CREATE_DISK_ONLY) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user