if (!voldef->target.capacity && !backend->buildVol) {
virReportError(VIR_ERR_NO_SUPPORT,
- "%s", _("volume capacity required for this "
- "storage pool"));
+ "%s", _("volume capacity required for this storage pool"));
goto cleanup;
}
if (!backend->createVol) {
virReportError(VIR_ERR_NO_SUPPORT,
- "%s", _("storage pool does not support volume "
- "creation"));
+ "%s", _("storage pool does not support volume creation"));
goto cleanup;
}
if (!backend->buildVolFrom) {
virReportError(VIR_ERR_NO_SUPPORT,
- "%s", _("storage pool does not support"
- " volume creation from an existing volume"));
+ "%s", _("storage pool does not support volume creation from an existing volume"));
goto cleanup;
}
if (virFileRemove(desc, 0, 0) < 0) {
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
- _("refresh ploop failed:"
- " unable to delete DiskDescriptor.xml"));
+ _("refresh ploop failed: unable to delete DiskDescriptor.xml"));
return -1;
}
if (abs_capacity < voldef->target.allocation) {
virReportError(VIR_ERR_INVALID_ARG, "%s",
- _("can't shrink capacity below "
- "existing allocation"));
+ _("can't shrink capacity below existing allocation"));
goto cleanup;
}
if (abs_capacity < voldef->target.capacity &&
!(flags & VIR_STORAGE_VOL_RESIZE_SHRINK)) {
virReportError(VIR_ERR_INVALID_ARG, "%s",
- _("Can't shrink capacity below current "
- "capacity unless shrink flag explicitly specified"));
+ _("Can't shrink capacity below current capacity unless shrink flag explicitly specified"));
goto cleanup;
}
if (!backend->resizeVol) {
virReportError(VIR_ERR_NO_SUPPORT, "%s",
- _("storage pool does not support changing of "
- "volume capacity"));
+ _("storage pool does not support changing of volume capacity"));
goto cleanup;
}
if (flags & VIR_STORAGE_VOL_CREATE_PREALLOC_METADATA) {
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
- _("metadata preallocation is not supported for block "
- "volumes"));
+ _("metadata preallocation is not supported for block volumes"));
return -1;
}
if (flags & VIR_STORAGE_VOL_CREATE_PREALLOC_METADATA) {
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
- _("metadata preallocation is not supported for raw "
- "volumes"));
+ _("metadata preallocation is not supported for raw volumes"));
return -1;
}
if (vol->target.encryption) {
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
- _("encrypted ploop volumes are not supported with "
- "ploop init"));
+ _("encrypted ploop volumes are not supported with ploop init"));
return -1;
}
create_tool = virFindFileInPath("ploop");
if (!create_tool && !inputvol) {
virReportError(VIR_ERR_INTERNAL_ERROR,
- "%s", _("unable to find ploop, please install "
- "ploop tools"));
+ "%s", _("unable to find ploop, please install ploop tools"));
return -1;
}
if (info->preallocate) {
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
- _("metadata preallocation conflicts with backing"
- " store"));
+ _("metadata preallocation conflicts with backing store"));
return -1;
}
if (enc->nsecrets != 1) {
virReportError(VIR_ERR_INVALID_ARG, "%s",
- _("A single <secret type='passphrase'...> "
- "element is expected in encryption description"));
+ _("A single <secret type='passphrase'...> element is expected in encryption description"));
return NULL;
}
create_tool = virFindFileInPath("qemu-img");
if (!create_tool) {
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
- _("creation of non-raw file images is "
- "not supported without qemu-img."));
+ _("creation of non-raw file images is not supported without qemu-img."));
return -1;
}
} else if (vol->target.format == VIR_STORAGE_FILE_RAW && vol->target.encryption) {
if (pre_allocate) {
virReportError(VIR_ERR_OPERATION_UNSUPPORTED, "%s",
- _("preallocate is only supported for an "
- "unencrypted raw volume"));
+ _("preallocate is only supported for an unencrypted raw volume"));
return -1;
}
} else {
if (pre_allocate) {
virReportError(VIR_ERR_OPERATION_UNSUPPORTED, "%s",
- _("preallocate is only supported for raw "
- "type volume"));
+ _("preallocate is only supported for raw type volume"));
return -1;
}
snap_tool = virFindFileInPath("ploop");
if (!snap_tool) {
virReportError(VIR_ERR_INTERNAL_ERROR,
- "%s", _("unable to find ploop, please install "
- "ploop tools"));
+ "%s", _("unable to find ploop, please install ploop tools"));
return -1;
}
return -1;
} else if (!has_snap) {
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
- _("can't upload volume, all existing snapshots"
- " will be lost"));
+ _("can't upload volume, all existing snapshots will be lost"));
return -1;
}
return -1;
} else if (!has_snap) {
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
- _("can't download volume, all existing snapshots"
- " will be lost"));
+ _("can't download volume, all existing snapshots will be lost"));
return -1;
}
path = g_strdup_printf("%s/root.hds", vol->target.path);
if (ret == 0 && blkid_do_probe(probe) != 1) {
virReportError(VIR_ERR_STORAGE_PROBE_FAILED, "%s",
- _("Found additional probes to run, probing may "
- "be incorrect"));
+ _("Found additional probes to run, probing may be incorrect"));
ret = -1;
}
switch (check) {
case VIR_STORAGE_PARTED_ERROR:
virReportError(VIR_ERR_OPERATION_FAILED, "%s",
- _("Error checking for disk label, failed to get "
- "disk partition information"));
+ _("Error checking for disk label, failed to get disk partition information"));
break;
case VIR_STORAGE_PARTED_MATCH:
case VIR_STORAGE_PARTED_DIFFERENT:
virReportError(VIR_ERR_OPERATION_FAILED, "%s",
- _("Known, but different label format present, "
- "requires build --overwrite"));
+ _("Known, but different label format present, requires build --overwrite"));
break;
case VIR_STORAGE_PARTED_UNKNOWN:
case VIR_STORAGE_PARTED_NOPTTYPE:
virReportError(VIR_ERR_OPERATION_FAILED, "%s",
- _("Unable to determine Partition Type, "
- "requires build --overwrite"));
+ _("Unable to determine Partition Type, requires build --overwrite"));
break;
case VIR_STORAGE_PARTED_PTTYPE_UNK: