storageDriverUnlock(driverState);
return 0;
-error:
+ error:
VIR_FREE(base);
storageDriverUnlock(driverState);
storageStateCleanup();
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(vol->conn, pool->def->name, pool->def->uuid,
NULL, NULL);
-cleanup:
+ cleanup:
if (pool)
virStoragePoolObjUnlock(pool);
return ret;
ret = backend->findPoolSources(conn, srcSpec, flags);
-cleanup:
+ cleanup:
return ret;
}
ret = virStoragePoolObjIsActive(obj);
-cleanup:
+ cleanup:
if (obj)
virStoragePoolObjUnlock(obj);
return ret;
ret = obj->configFile ? 1 : 0;
-cleanup:
+ cleanup:
if (obj)
virStoragePoolObjUnlock(obj);
return ret;
ret = virGetStoragePool(conn, pool->def->name, pool->def->uuid,
NULL, NULL);
-cleanup:
+ cleanup:
virStoragePoolDefFree(def);
if (pool)
virStoragePoolObjUnlock(pool);
ret = virGetStoragePool(conn, pool->def->name, pool->def->uuid,
NULL, NULL);
-cleanup:
+ cleanup:
virStoragePoolDefFree(def);
if (pool)
virStoragePoolObjUnlock(pool);
pool = NULL;
ret = 0;
-cleanup:
+ cleanup:
if (pool)
virStoragePoolObjUnlock(pool);
storageDriverUnlock(driver);
pool->active = 1;
ret = 0;
-cleanup:
+ cleanup:
if (pool)
virStoragePoolObjUnlock(pool);
return ret;
goto cleanup;
ret = 0;
-cleanup:
+ cleanup:
if (pool)
virStoragePoolObjUnlock(pool);
return ret;
}
ret = 0;
-cleanup:
+ cleanup:
if (pool)
virStoragePoolObjUnlock(pool);
storageDriverUnlock(driver);
VIR_INFO("Deleting storage pool '%s'", pool->def->name);
ret = 0;
-cleanup:
+ cleanup:
if (pool)
virStoragePoolObjUnlock(pool);
return ret;
}
ret = 0;
-cleanup:
+ cleanup:
if (pool)
virStoragePoolObjUnlock(pool);
storageDriverUnlock(driver);
info->available = pool->def->available;
ret = 0;
-cleanup:
+ cleanup:
if (pool)
virStoragePoolObjUnlock(pool);
return ret;
ret = virStoragePoolDefFormat(def);
-cleanup:
+ cleanup:
if (pool)
virStoragePoolObjUnlock(pool);
return ret;
}
ret = 0;
-cleanup:
+ cleanup:
if (pool)
virStoragePoolObjUnlock(pool);
return ret;
}
ret = 0;
-cleanup:
+ cleanup:
if (pool)
virStoragePoolObjUnlock(pool);
storageDriverUnlock(driver);
ret++;
}
-cleanup:
+ cleanup:
if (pool)
virStoragePoolObjUnlock(pool);
return ret;
ret = virGetStorageVol(obj->conn, pool->def->name, vol->name, vol->key,
NULL, NULL);
-cleanup:
+ cleanup:
if (pool)
virStoragePoolObjUnlock(pool);
return ret;
virReportError(VIR_ERR_NO_STORAGE_VOL,
_("no storage vol with matching key %s"), key);
-cleanup:
+ cleanup:
storageDriverUnlock(driver);
return ret;
}
}
}
-cleanup:
+ cleanup:
VIR_FREE(cleanpath);
storageDriverUnlock(driver);
return ret;
}
ret = 0;
-cleanup:
+ cleanup:
if (pool)
virStoragePoolObjUnlock(pool);
return ret;
volobj = NULL;
voldef = NULL;
-cleanup:
+ cleanup:
virObjectUnref(volobj);
virStorageVolDefFree(voldef);
VIR_FREE(buildvoldef);
ret = volobj;
volobj = NULL;
-cleanup:
+ cleanup:
virObjectUnref(volobj);
virStorageVolDefFree(newvol);
if (pool)
ret = 0;
-cleanup:
+ cleanup:
if (pool)
virStoragePoolObjUnlock(pool);
ret = 0;
-cleanup:
+ cleanup:
if (pool)
virStoragePoolObjUnlock(pool);
ret = 0;
-cleanup:
+ cleanup:
if (pool)
virStoragePoolObjUnlock(pool);
ret = 0;
-cleanup:
+ cleanup:
return ret;
}
}
}
-cleanup:
+ cleanup:
virCommandFree(cmd);
VIR_FREE(writebuf);
VIR_FORCE_CLOSE(fd);
ret = 0;
-cleanup:
+ cleanup:
if (pool) {
virStoragePoolObjUnlock(pool);
}
info->allocation = vol->allocation;
ret = 0;
-cleanup:
+ cleanup:
if (pool)
virStoragePoolObjUnlock(pool);
return ret;
ret = virStorageVolDefFormat(pool->def, vol);
-cleanup:
+ cleanup:
if (pool)
virStoragePoolObjUnlock(pool);
ignore_value(VIR_STRDUP(ret, vol->target.path));
-cleanup:
+ cleanup:
if (pool)
virStoragePoolObjUnlock(pool);
return ret;
virConnectListAllStoragePoolsCheckACL, flags);
storageDriverUnlock(driver);
-cleanup:
+ cleanup:
return ret;
}
return file;
-error:
+ error:
VIR_FREE(file->path);
virDomainDiskHostDefFree(file->nhosts, file->hosts);
VIR_FREE(file);