char *cookie = NULL;
int cookielen = 0, ret;
virDomainInfo info;
- unsigned int destflags = flags & ~VIR_MIGRATE_ABORT_ON_ERROR;
+ unsigned int destflags;
VIR_DOMAIN_DEBUG(domain,
"dconn=%p, flags=%lx, dname=%s, uri=%s, bandwidth=%lu",
dconn, flags, NULLSTR(dname), NULLSTR(uri), bandwidth);
ret = virDomainGetInfo(domain, &info);
- if (ret == 0 && info.state == VIR_DOMAIN_PAUSED) {
+ if (ret == 0 && info.state == VIR_DOMAIN_PAUSED)
flags |= VIR_MIGRATE_PAUSED;
- }
+
+ destflags = flags & ~VIR_MIGRATE_ABORT_ON_ERROR;
/* Prepare the migration.
*
virErrorPtr orig_err = NULL;
unsigned int getxml_flags = 0;
int cancelled;
- unsigned int destflags = flags & ~VIR_MIGRATE_ABORT_ON_ERROR;
+ unsigned long destflags;
VIR_DOMAIN_DEBUG(domain,
"dconn=%p, flags=%lx, dname=%s, uri=%s, bandwidth=%lu",
return NULL;
ret = virDomainGetInfo(domain, &info);
- if (ret == 0 && info.state == VIR_DOMAIN_PAUSED) {
+ if (ret == 0 && info.state == VIR_DOMAIN_PAUSED)
flags |= VIR_MIGRATE_PAUSED;
- }
- VIR_DEBUG("Prepare2 %p flags=%lx", dconn, flags);
+ destflags = flags & ~VIR_MIGRATE_ABORT_ON_ERROR;
+
+ VIR_DEBUG("Prepare2 %p flags=%lx", dconn, destflags);
ret = dconn->driver->domainMigratePrepare2
(dconn, &cookie, &cookielen, uri, &uri_out, destflags, dname,
bandwidth, dom_xml);
int cancelled = 1;
unsigned long protection = 0;
bool notify_source = true;
- unsigned int destflags = flags & ~VIR_MIGRATE_ABORT_ON_ERROR;
+ unsigned int destflags;
int state;
virTypedParameterPtr tmp;
if (ret == 0 && state == VIR_DOMAIN_PAUSED)
flags |= VIR_MIGRATE_PAUSED;
- VIR_DEBUG("Prepare3 %p flags=%x", dconn, flags);
+ destflags = flags & ~VIR_MIGRATE_ABORT_ON_ERROR;
+
+ VIR_DEBUG("Prepare3 %p flags=%x", dconn, destflags);
cookiein = cookieout;
cookieinlen = cookieoutlen;
cookieout = NULL;
virErrorPtr orig_err = NULL;
bool cancelled;
virStreamPtr st = NULL;
- unsigned int destflags = flags & ~VIR_MIGRATE_ABORT_ON_ERROR;
+ unsigned long destflags;
VIR_DEBUG("driver=%p, sconn=%p, dconn=%p, vm=%p, dconnuri=%s, "
"flags=%lx, dname=%s, resource=%lu",
if (virDomainObjGetState(vm, NULL) == VIR_DOMAIN_PAUSED)
flags |= VIR_MIGRATE_PAUSED;
+ destflags = flags & ~VIR_MIGRATE_ABORT_ON_ERROR;
+
VIR_DEBUG("Prepare2 %p", dconn);
if (flags & VIR_MIGRATE_TUNNELLED) {
/*
virErrorPtr orig_err = NULL;
bool cancelled = true;
virStreamPtr st = NULL;
- unsigned int destflags = flags & ~VIR_MIGRATE_ABORT_ON_ERROR;
-
+ unsigned long destflags;
virTypedParameterPtr params = NULL;
int nparams = 0;
int maxparams = 0;
if (virDomainObjGetState(vm, NULL) == VIR_DOMAIN_PAUSED)
flags |= VIR_MIGRATE_PAUSED;
+ destflags = flags & ~VIR_MIGRATE_ABORT_ON_ERROR;
+
VIR_DEBUG("Prepare3 %p", dconn);
cookiein = cookieout;
cookieinlen = cookieoutlen;