if (!pool) {
virReportError(VIR_ERR_NO_STORAGE_POOL,
- "%s", _("no pool with matching uuid"));
+ _("no storage pool with matching uuid %s"), uuid);
goto cleanup;
}
if (!pool) {
virReportError(VIR_ERR_NO_STORAGE_POOL,
- _("no pool with matching name '%s'"), name);
+ _("no storage pool with matching name '%s'"), name);
goto cleanup;
}
pool = virStoragePoolObjFindByUUID(&driver->pools, obj->uuid);
if (!pool) {
virReportError(VIR_ERR_NO_STORAGE_POOL,
- "%s", _("no storage pool with matching uuid"));
+ _("no storage pool with matching uuid %s"), obj->uuid);
goto cleanup;
}
if (virStoragePoolObjIsActive(pool)) {
virReportError(VIR_ERR_OPERATION_INVALID,
- "%s", _("pool is still active"));
+ _("storage pool '%s' is still active"),
+ pool->def->name);
goto cleanup;
}
if (!pool) {
virReportError(VIR_ERR_NO_STORAGE_POOL,
- "%s", _("no storage pool with matching uuid"));
+ _("no storage pool with matching uuid %s"), obj->uuid);
goto cleanup;
}
if (virStoragePoolObjIsActive(pool)) {
virReportError(VIR_ERR_OPERATION_INVALID,
- "%s", _("pool already active"));
+ _("storage pool '%s' is already active"),
+ pool->def->name);
goto cleanup;
}
if (backend->startPool &&
if (!pool) {
virReportError(VIR_ERR_NO_STORAGE_POOL,
- "%s", _("no storage pool with matching uuid"));
+ _("no storage pool with matching uuid %s"), obj->uuid);
goto cleanup;
}
if (virStoragePoolObjIsActive(pool)) {
virReportError(VIR_ERR_OPERATION_INVALID,
- "%s", _("storage pool is already active"));
+ _("storage pool '%s' is already active"),
+ pool->def->name);
goto cleanup;
}
if (!pool) {
virReportError(VIR_ERR_NO_STORAGE_POOL,
- "%s", _("no storage pool with matching uuid"));
+ _("no storage pool with matching uuid %s"), obj->uuid);
goto cleanup;
}
if (!virStoragePoolObjIsActive(pool)) {
virReportError(VIR_ERR_OPERATION_INVALID,
- "%s", _("storage pool is not active"));
+ _("storage pool '%s' is not active"), pool->def->name);
goto cleanup;
}
if (!pool) {
virReportError(VIR_ERR_NO_STORAGE_POOL,
- "%s", _("no storage pool with matching uuid"));
+ _("no storage pool with matching uuid %s"), obj->uuid);
goto cleanup;
}
if (virStoragePoolObjIsActive(pool)) {
virReportError(VIR_ERR_OPERATION_INVALID,
- "%s", _("storage pool is still active"));
+ _("storage pool '%s' is still active"),
+ pool->def->name);
goto cleanup;
}
if (!pool) {
virReportError(VIR_ERR_NO_STORAGE_POOL,
- "%s", _("no storage pool with matching uuid"));
+ _("no storage pool with matching uuid %s"), obj->uuid);
goto cleanup;
}
if (!virStoragePoolObjIsActive(pool)) {
virReportError(VIR_ERR_OPERATION_INVALID,
- "%s", _("storage pool is not active"));
+ _("storage pool '%s' is not active"), pool->def->name);
goto cleanup;
}
if (!pool) {
virReportError(VIR_ERR_NO_STORAGE_POOL,
- "%s", _("no storage pool with matching uuid"));
+ _("no storage pool with matching uuid %s"), obj->uuid);
goto cleanup;
}
if (!pool) {
virReportError(VIR_ERR_NO_STORAGE_POOL,
- "%s", _("no storage pool with matching uuid"));
+ _("no storage pool with matching uuid %s"), obj->uuid);
goto cleanup;
}
if (!pool) {
virReportError(VIR_ERR_NO_STORAGE_POOL,
- "%s", _("no pool with matching uuid"));
+ _("no storage pool with matching uuid %s"), obj->uuid);
goto cleanup;
}
if (!pool) {
virReportError(VIR_ERR_NO_STORAGE_POOL,
- "%s", _("no pool with matching uuid"));
+ _("no storage pool with matching uuid %s"), obj->uuid);
goto cleanup;
}
if (!pool) {
virReportError(VIR_ERR_NO_STORAGE_POOL,
- "%s", _("no storage pool with matching uuid"));
+ _("no storage pool with matching uuid %s"), obj->uuid);
goto cleanup;
}
if (!virStoragePoolObjIsActive(pool)) {
virReportError(VIR_ERR_OPERATION_INVALID,
- "%s", _("storage pool is not active"));
+ _("storage pool '%s' is not active"), pool->def->name);
goto cleanup;
}
ret = pool->volumes.count;
if (!pool) {
virReportError(VIR_ERR_NO_STORAGE_POOL,
- "%s", _("no storage pool with matching uuid"));
+ _("no storage pool with matching uuid %s"), obj->uuid);
goto cleanup;
}
if (!virStoragePoolObjIsActive(pool)) {
virReportError(VIR_ERR_OPERATION_INVALID,
- "%s", _("storage pool is not active"));
+ _("storage pool '%s' is not active"), pool->def->name);
goto cleanup;
}
storageDriverUnlock(driver);
if (!obj) {
- virReportError(VIR_ERR_NO_STORAGE_POOL, "%s",
- _("no storage pool with matching uuid"));
+ virReportError(VIR_ERR_NO_STORAGE_POOL,
+ _("no storage pool with matching uuid %s"),
+ pool->uuid);
goto cleanup;
}
if (!virStoragePoolObjIsActive(obj)) {
- virReportError(VIR_ERR_OPERATION_INVALID, "%s",
- _("storage pool is not active"));
+ virReportError(VIR_ERR_OPERATION_INVALID,
+ _("storage pool '%s' is not active"), obj->def->name);
goto cleanup;
}
if (!pool) {
virReportError(VIR_ERR_NO_STORAGE_POOL,
- "%s", _("no storage pool with matching uuid"));
+ _("no storage pool with matching uuid %s"), obj->uuid);
goto cleanup;
}
if (!virStoragePoolObjIsActive(pool)) {
virReportError(VIR_ERR_OPERATION_INVALID,
- "%s", _("storage pool is not active"));
+ _("storage pool '%s' is not active"), pool->def->name);
goto cleanup;
}
if (!ret)
virReportError(VIR_ERR_NO_STORAGE_VOL,
- "%s", _("no storage vol with matching key"));
+ _("no storage vol with matching key %s"), key);
return ret;
}
if (!ret)
virReportError(VIR_ERR_NO_STORAGE_VOL,
- "%s", _("no storage vol with matching path"));
+ _("no storage vol with matching path %s"), path);
VIR_FREE(cleanpath);
storageDriverUnlock(driver);
if (!pool) {
virReportError(VIR_ERR_NO_STORAGE_POOL,
- "%s", _("no storage pool with matching uuid"));
+ _("no storage pool with matching uuid %s"), obj->uuid);
goto cleanup;
}
if (!virStoragePoolObjIsActive(pool)) {
virReportError(VIR_ERR_OPERATION_INVALID,
- "%s", _("storage pool is not active"));
+ _("storage pool '%s' is not active"), pool->def->name);
goto cleanup;
}
if (virStorageVolDefFindByName(pool, voldef->name)) {
virReportError(VIR_ERR_NO_STORAGE_VOL,
- "%s", _("storage vol already exists"));
+ _("storage vol '%s' already exists"), voldef->name);
goto cleanup;
}
storageDriverUnlock(driver);
if (!pool) {
virReportError(VIR_ERR_NO_STORAGE_POOL,
- "%s", _("no storage pool with matching uuid"));
+ _("no storage pool with matching uuid %s"), obj->uuid);
goto cleanup;
}
if (!virStoragePoolObjIsActive(pool)) {
virReportError(VIR_ERR_OPERATION_INVALID,
- "%s", _("storage pool is not active"));
+ _("storage pool '%s' is not active"), pool->def->name);
goto cleanup;
}
if (origpool && !virStoragePoolObjIsActive(origpool)) {
virReportError(VIR_ERR_OPERATION_INVALID,
- "%s", _("storage pool is not active"));
+ _("storage pool '%s' is not active"),
+ origpool->def->name);
goto cleanup;
}
if (!pool) {
virReportError(VIR_ERR_NO_STORAGE_POOL,
- "%s", _("no storage pool with matching uuid"));
+ _("no storage pool with matching name '%s'"),
+ obj->pool);
goto out;
}
if (!virStoragePoolObjIsActive(pool)) {
virReportError(VIR_ERR_OPERATION_INVALID,
- "%s", _("storage pool is not active"));
+ _("storage pool '%s' is not active"), pool->def->name);
goto out;
}
if (!pool) {
virReportError(VIR_ERR_NO_STORAGE_POOL,
- "%s", _("no storage pool with matching uuid"));
+ _("no storage pool with matching name '%s'"),
+ obj->pool);
goto out;
}
if (!virStoragePoolObjIsActive(pool)) {
virReportError(VIR_ERR_OPERATION_INVALID,
- "%s", _("storage pool is not active"));
+ _("storage pool '%s' is not active"), pool->def->name);
goto out;
}
storageDriverUnlock(driver);
if (!pool) {
- virReportError(VIR_ERR_NO_STORAGE_POOL, "%s",
- _("no storage pool with matching uuid"));
+ virReportError(VIR_ERR_NO_STORAGE_POOL,
+ _("no storage pool with matching name '%s'"),
+ obj->pool);
goto out;
}
if (!virStoragePoolObjIsActive(pool)) {
- virReportError(VIR_ERR_OPERATION_INVALID, "%s",
- _("storage pool is not active"));
+ virReportError(VIR_ERR_OPERATION_INVALID,
+ _("storage pool '%s' is not active"), pool->def->name);
goto out;
}
if (!pool) {
virReportError(VIR_ERR_NO_STORAGE_POOL,
- "%s", _("no storage pool with matching uuid"));
+ _("no storage pool with matching name '%s'"),
+ obj->pool);
goto out;
}
if (!virStoragePoolObjIsActive(pool)) {
virReportError(VIR_ERR_OPERATION_INVALID,
- "%s", _("storage pool is not active"));
+ _("storage pool '%s' is not active"), pool->def->name);
goto out;
}
if (!pool) {
virReportError(VIR_ERR_NO_STORAGE_POOL,
- "%s", _("no storage pool with matching uuid"));
+ _("no storage pool with matching name '%s'"),
+ obj->pool);
goto cleanup;
}
if (!virStoragePoolObjIsActive(pool)) {
virReportError(VIR_ERR_OPERATION_INVALID,
- "%s", _("storage pool is not active"));
+ _("storage pool '%s' is not active"), pool->def->name);
goto cleanup;
}
if (!pool) {
virReportError(VIR_ERR_NO_STORAGE_POOL,
- "%s", _("no storage pool with matching uuid"));
+ _("no storage pool with matching name '%s'"),
+ obj->pool);
goto cleanup;
}
if (!virStoragePoolObjIsActive(pool)) {
virReportError(VIR_ERR_OPERATION_INVALID,
- "%s", _("storage pool is not active"));
+ _("storage pool '%s' is not active"), pool->def->name);
goto cleanup;
}
if (!pool) {
virReportError(VIR_ERR_NO_STORAGE_POOL,
- "%s", _("no storage pool with matching uuid"));
+ _("no storage pool with matching name '%s'"),
+ obj->pool);
goto cleanup;
}
if (!virStoragePoolObjIsActive(pool)) {
virReportError(VIR_ERR_OPERATION_INVALID,
- "%s", _("storage pool is not active"));
+ _("storage pool '%s' is not active"), pool->def->name);
goto cleanup;
}
storageDriverUnlock(driver);
if (!pool) {
virReportError(VIR_ERR_NO_STORAGE_POOL,
- "%s", _("no storage pool with matching uuid"));
+ _("no storage pool with matching name '%s'"),
+ obj->pool);
goto cleanup;
}
if (!virStoragePoolObjIsActive(pool)) {
virReportError(VIR_ERR_OPERATION_INVALID,
- "%s", _("storage pool is not active"));
+ _("storage pool '%s' is not active"), pool->def->name);
goto cleanup;
}