return caps;
- error:
+ error:
virObjectUnref(caps);
return NULL;
}
return 0;
- cleanup:
+ cleanup:
virDomainChrDefFree(chr);
return -1;
}
return 0;
-error:
+ error:
VIR_FREE(accel);
virDomainVideoDefFree(video);
return -1;
return 0;
-error:
+ error:
virDomainDiskDefFree(disk);
return -1;
}
}
return 0;
-error:
+ error:
virReportError(VIR_ERR_INVALID_ARG,
_("Invalid MAC address format '%s'"), str);
return -1;
return 0;
-error:
+ error:
return -1;
}
return 0;
-error:
+ error:
virDomainNetDefFree(net);
return -1;
}
return 0;
- cleanup:
+ cleanup:
return -1;
}
return 0;
- cleanup:
+ cleanup:
virDomainGraphicsDefFree(gr);
return ret;
}
return dom;
- cleanup:
+ cleanup:
virDomainDefFree(def);
parallelsDomObjFreePrivate(pdom);
return NULL;
ret = 0;
- cleanup:
+ cleanup:
virJSONValueFree(jobj);
return ret;
}
return VIR_DRV_OPEN_SUCCESS;
- error:
+ error:
virObjectUnref(privconn->domains);
virObjectUnref(privconn->caps);
virStoragePoolObjListFree(&privconn->pools);
ret = 0;
-cleanup:
+ cleanup:
VIR_FREE(output);
return ret;
}
if (ret)
ret->id = dom->def->id;
- cleanup:
+ cleanup:
if (dom)
virObjectUnlock(dom);
return ret;
if (ret)
ret->id = dom->def->id;
- cleanup:
+ cleanup:
if (dom)
virObjectUnlock(dom);
return ret;
if (ret)
ret->id = dom->def->id;
- cleanup:
+ cleanup:
if (dom)
virObjectUnlock(dom);
return ret;
info->cpuTime = 0;
ret = 0;
- cleanup:
+ cleanup:
if (privdom)
virObjectUnlock(privdom);
return ret;
ignore_value(VIR_STRDUP(ret, privdom->def->os.type));
- cleanup:
+ cleanup:
if (privdom)
virObjectUnlock(privdom);
parallelsDriverUnlock(privconn);
ret = 1;
- cleanup:
+ cleanup:
if (privdom)
virObjectUnlock(privdom);
parallelsDriverUnlock(privconn);
*state = virDomainObjGetState(privdom, reason);
ret = 0;
- cleanup:
+ cleanup:
if (privdom)
virObjectUnlock(privdom);
return ret;
ret = virDomainDefFormat(def, flags);
- cleanup:
+ cleanup:
if (privdom)
virObjectUnlock(privdom);
return ret;
*autostart = privdom->autostart;
ret = 0;
- cleanup:
+ cleanup:
if (privdom)
virObjectUnlock(privdom);
return ret;
ret = 0;
- cleanup:
+ cleanup:
if (privdom)
virObjectUnlock(privdom);
}
return 0;
-error:
+ error:
virReportError(VIR_ERR_ARGUMENT_UNSUPPORTED, "%s",
_("changing display parameters is not supported "
"by parallels driver"));
}
return 0;
-error:
+ error:
virReportError(VIR_ERR_ARGUMENT_UNSUPPORTED, "%s",
_("changing serial device parameters is "
"not supported by parallels driver"));
goto cleanup;
ret = 0;
-cleanup:
+ cleanup:
virCommandFree(cmd);
return ret;
}
ret = parallelsAddHddByVolume(pdom, disk, pool, voldef);
-cleanup:
+ cleanup:
if (pool)
virStoragePoolObjUnlock(pool);
virObjectUnref(vol);
ret = 0;
-cleanup:
+ cleanup:
if (create)
VIR_FREE(oldnet);
virCommandFree(cmd);
return 0;
- error2:
+ error2:
virStoragePoolObjUnlock(pool);
- error:
+ error:
virObjectUnref(vol);
return -1;
}
return 0;
-error:
+ error:
return -1;
}
if (ret)
ret->id = dom->def->id;
- cleanup:
+ cleanup:
virDomainDefFree(def);
if (dom)
virObjectUnlock(dom);
ret = 0;
-cleanup:
+ cleanup:
VIR_FREE(bridgeLink);
VIR_FREE(bridgePath);
VIR_FREE(bridgeAddress);
}
ret = 0;
-cleanup:
+ cleanup:
virJSONValueFree(jobj);
return ret;
}
virNetworkObjUnlock(net);
return net;
-cleanup:
+ cleanup:
virNetworkDefFree(def);
return NULL;
}
return net;
-cleanup:
+ cleanup:
virNetworkDefFree(def);
return NULL;
}
ret = 0;
-cleanup:
+ cleanup:
virJSONValueFree(jobj);
return ret;
}
ret = virGetNetwork(conn, network->def->name, network->def->uuid);
-cleanup:
+ cleanup:
if (network)
virNetworkObjUnlock(network);
return ret;
ret = virGetNetwork(conn, network->def->name, network->def->uuid);
-cleanup:
+ cleanup:
if (network)
virNetworkObjUnlock(network);
return ret;
ret = virNetworkDefFormat(network->def, flags);
-cleanup:
+ cleanup:
if (network)
virNetworkObjUnlock(network);
return ret;
}
ret = virNetworkObjIsActive(obj);
-cleanup:
+ cleanup:
if (obj)
virNetworkObjUnlock(obj);
return ret;
}
ret = obj->persistent;
-cleanup:
+ cleanup:
if (obj)
virNetworkObjUnlock(obj);
return ret;
*autostart = network->autostart;
ret = 0;
-cleanup:
+ cleanup:
if (network)
virNetworkObjUnlock(network);
return ret;
}
ret = 0;
-cleanup:
+ cleanup:
VIR_FREE(path);
closedir(dir);
return ret;
virStoragePoolObjUnlock(pool);
return pool;
-error:
+ error:
virStoragePoolDefFree(def);
if (pool)
virStoragePoolObjUnlock(pool);
def->capacity <<= 9;
def->allocation = def->capacity;
ret = 0;
-cleanup:
+ cleanup:
xmlXPathFreeContext(ctxt);
return ret;
goto error;
return 0;
-no_memory:
+ no_memory:
virReportOOMError();
-error:
+ error:
virStorageVolDefFree(def);
return -1;
}
}
ret = 0;
-cleanup:
+ cleanup:
VIR_FREE(diskPath);
VIR_FREE(diskDescPath);
closedir(dir);
return 0;
-error:
+ error:
VIR_FREE(base);
return -1;
}
return VIR_DRV_OPEN_SUCCESS;
-error:
+ error:
parallelsStorageUnlock(storageState);
parallelsStorageClose(conn);
return -1;
return n;
-error:
+ error:
for (n = 0; n < nnames; n++)
VIR_FREE(names[n]);
parallelsDriverUnlock(privconn);
return n;
-error:
+ error:
for (n = 0; n < nnames; n++)
VIR_FREE(names[n]);
parallelsDriverUnlock(privconn);
}
ret = virStoragePoolObjIsActive(obj);
-cleanup:
+ cleanup:
if (obj)
virStoragePoolObjUnlock(obj);
return ret;
ret = virGetStoragePool(conn, pool->def->name, pool->def->uuid,
NULL, NULL);
-cleanup:
+ cleanup:
if (pool)
virStoragePoolObjUnlock(pool);
return ret;
ret = virGetStoragePool(conn, pool->def->name, pool->def->uuid,
NULL, NULL);
-cleanup:
+ cleanup:
if (pool)
virStoragePoolObjUnlock(pool);
return ret;
ret = virGetStoragePool(conn, pool->def->name, pool->def->uuid,
NULL, NULL);
-cleanup:
+ cleanup:
virStoragePoolDefFree(def);
if (pool)
virStoragePoolObjUnlock(pool);
virStoragePoolObjRemove(&privconn->pools, privpool);
ret = 0;
-cleanup:
+ cleanup:
if (privpool)
virStoragePoolObjUnlock(privpool);
parallelsDriverUnlock(privconn);
privpool->active = 1;
ret = 0;
-cleanup:
+ cleanup:
if (privpool)
virStoragePoolObjUnlock(privpool);
return ret;
}
ret = 0;
-cleanup:
+ cleanup:
if (privpool)
virStoragePoolObjUnlock(privpool);
parallelsDriverUnlock(privconn);
}
ret = 0;
-cleanup:
+ cleanup:
if (privpool)
virStoragePoolObjUnlock(privpool);
return ret;
info->available = privpool->def->available;
ret = 0;
-cleanup:
+ cleanup:
if (privpool)
virStoragePoolObjUnlock(privpool);
return ret;
ret = virStoragePoolDefFormat(privpool->def);
-cleanup:
+ cleanup:
if (privpool)
virStoragePoolObjUnlock(privpool);
return ret;
}
ret = 0;
-cleanup:
+ cleanup:
if (privpool)
virStoragePoolObjUnlock(privpool);
return ret;
privpool->autostart = (autostart != 0);
ret = 0;
-cleanup:
+ cleanup:
if (privpool)
virStoragePoolObjUnlock(privpool);
return ret;
ret = privpool->volumes.count;
-cleanup:
+ cleanup:
if (privpool)
virStoragePoolObjUnlock(privpool);
return ret;
virStoragePoolObjUnlock(privpool);
return n;
-error:
+ error:
for (n = 0; n < maxnames; n++)
VIR_FREE(names[i]);
privvol->name, privvol->key,
NULL, NULL);
-cleanup:
+ cleanup:
if (privpool)
virStoragePoolObjUnlock(privpool);
return ret;
ret = privvol;
privvol = NULL;
-cleanup:
+ cleanup:
virStorageVolDefFree(privvol);
VIR_FREE(xml_path);
return ret;
ret = virGetStorageVol(pool->conn, privpool->def->name,
privvol->name, privvol->key,
NULL, NULL);
-cleanup:
+ cleanup:
if (privpool)
virStoragePoolObjUnlock(privpool);
return ret;
NULL, NULL);
privvol = NULL;
-cleanup:
+ cleanup:
virStorageVolDefFree(privvol);
if (privpool)
virStoragePoolObjUnlock(privpool);
}
ret = 0;
-cleanup:
+ cleanup:
VIR_FREE(xml_path);
return ret;
}
ret = 0;
-cleanup:
+ cleanup:
if (privpool)
virStoragePoolObjUnlock(privpool);
return ret;
case VIR_STORAGE_POOL_FS:
case VIR_STORAGE_POOL_NETFS:
return VIR_STORAGE_VOL_FILE;
-default:
+ default:
return VIR_STORAGE_VOL_BLOCK;
}
}
info->allocation = privvol->allocation;
ret = 0;
-cleanup:
+ cleanup:
if (privpool)
virStoragePoolObjUnlock(privpool);
return ret;
ret = virStorageVolDefFormat(privpool->def, privvol);
-cleanup:
+ cleanup:
if (privpool)
virStoragePoolObjUnlock(privpool);
return ret;
ignore_value(VIR_STRDUP(ret, privvol->target.path));
-cleanup:
+ cleanup:
if (privpool)
virStoragePoolObjUnlock(privpool);
return ret;