mirror of https://gitee.com/openkylin/libvirt.git
qemu: migration: Rename qemuMigrationEatCookie to qemuMigrationCookieParse
Use a more descriptive name and move the verb to the end so that the functions conform with the naming policy. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
5b32815d1a
commit
43f0944f66
|
@ -2602,7 +2602,7 @@ qemuMigrationDstPrepareAny(virQEMUDriverPtr driver,
|
|||
/* Parse cookie earlier than adding the domain onto the
|
||||
* domain list. Parsing/validation may fail and there's no
|
||||
* point in having the domain in the list at that point. */
|
||||
if (!(mig = qemuMigrationEatCookie(driver, *def, origname, NULL,
|
||||
if (!(mig = qemuMigrationCookieParse(driver, *def, origname, NULL,
|
||||
cookiein, cookieinlen,
|
||||
QEMU_MIGRATION_COOKIE_LOCKSTATE |
|
||||
QEMU_MIGRATION_COOKIE_NBD |
|
||||
|
@ -3122,7 +3122,7 @@ qemuMigrationSrcConfirmPhase(virQEMUDriverPtr driver,
|
|||
? QEMU_MIGRATION_PHASE_CONFIRM3
|
||||
: QEMU_MIGRATION_PHASE_CONFIRM3_CANCELLED);
|
||||
|
||||
if (!(mig = qemuMigrationEatCookie(driver, vm->def, priv->origname, priv,
|
||||
if (!(mig = qemuMigrationCookieParse(driver, vm->def, priv->origname, priv,
|
||||
cookiein, cookieinlen,
|
||||
QEMU_MIGRATION_COOKIE_STATS)))
|
||||
return -1;
|
||||
|
@ -3672,7 +3672,7 @@ qemuMigrationSrcRun(virQEMUDriverPtr driver,
|
|||
}
|
||||
}
|
||||
|
||||
mig = qemuMigrationEatCookie(driver, vm->def, priv->origname, priv,
|
||||
mig = qemuMigrationCookieParse(driver, vm->def, priv->origname, priv,
|
||||
cookiein, cookieinlen,
|
||||
cookieFlags |
|
||||
QEMU_MIGRATION_COOKIE_GRAPHICS |
|
||||
|
@ -5208,7 +5208,7 @@ qemuMigrationDstFinish(virQEMUDriverPtr driver,
|
|||
* even though VIR_MIGRATE_PERSIST_DEST was not used. */
|
||||
cookie_flags |= QEMU_MIGRATION_COOKIE_PERSISTENT;
|
||||
|
||||
if (!(mig = qemuMigrationEatCookie(driver, vm->def, priv->origname, priv,
|
||||
if (!(mig = qemuMigrationCookieParse(driver, vm->def, priv->origname, priv,
|
||||
cookiein, cookieinlen, cookie_flags)))
|
||||
goto endjob;
|
||||
|
||||
|
|
|
@ -1441,7 +1441,7 @@ qemuMigrationCookieFormat(qemuMigrationCookiePtr mig,
|
|||
|
||||
|
||||
qemuMigrationCookiePtr
|
||||
qemuMigrationEatCookie(virQEMUDriverPtr driver,
|
||||
qemuMigrationCookieParse(virQEMUDriverPtr driver,
|
||||
const virDomainDef *def,
|
||||
const char *origname,
|
||||
qemuDomainObjPrivatePtr priv,
|
||||
|
|
|
@ -165,7 +165,7 @@ qemuMigrationCookieFormat(qemuMigrationCookiePtr mig,
|
|||
unsigned int flags);
|
||||
|
||||
qemuMigrationCookiePtr
|
||||
qemuMigrationEatCookie(virQEMUDriverPtr driver,
|
||||
qemuMigrationCookieParse(virQEMUDriverPtr driver,
|
||||
const virDomainDef *def,
|
||||
const char *origname,
|
||||
qemuDomainObjPrivatePtr priv,
|
||||
|
|
Loading…
Reference in New Issue