mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
vz: Update format strings in translated messages
Signed-off-by: Jiri Denemark <jdenemar@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
c7dbe9c93d
commit
72bcbcfef9
@ -364,7 +364,7 @@ vzConnectOpen(virConnectPtr conn,
|
|||||||
/* From this point on, the connection is for us. */
|
/* From this point on, the connection is for us. */
|
||||||
if (STRNEQ(conn->uri->path, "/system")) {
|
if (STRNEQ(conn->uri->path, "/system")) {
|
||||||
virReportError(VIR_ERR_INTERNAL_ERROR,
|
virReportError(VIR_ERR_INTERNAL_ERROR,
|
||||||
_("Unexpected Virtuozzo URI path '%s', try vz:///system"),
|
_("Unexpected Virtuozzo URI path '%1$s', try vz:///system"),
|
||||||
conn->uri->path);
|
conn->uri->path);
|
||||||
return VIR_DRV_OPEN_ERROR;
|
return VIR_DRV_OPEN_ERROR;
|
||||||
}
|
}
|
||||||
@ -575,7 +575,7 @@ vzDomainLookupByUUID(virConnectPtr conn, const unsigned char *uuid)
|
|||||||
char uuidstr[VIR_UUID_STRING_BUFLEN];
|
char uuidstr[VIR_UUID_STRING_BUFLEN];
|
||||||
virUUIDFormat(uuid, uuidstr);
|
virUUIDFormat(uuid, uuidstr);
|
||||||
virReportError(VIR_ERR_NO_DOMAIN,
|
virReportError(VIR_ERR_NO_DOMAIN,
|
||||||
_("no domain with matching uuid '%s'"), uuidstr);
|
_("no domain with matching uuid '%1$s'"), uuidstr);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -600,7 +600,7 @@ vzDomainLookupByName(virConnectPtr conn, const char *name)
|
|||||||
|
|
||||||
if (dom == NULL) {
|
if (dom == NULL) {
|
||||||
virReportError(VIR_ERR_NO_DOMAIN,
|
virReportError(VIR_ERR_NO_DOMAIN,
|
||||||
_("no domain with matching name '%s'"), name);
|
_("no domain with matching name '%1$s'"), name);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -773,7 +773,7 @@ vzEnsureDomainExists(virDomainObj *dom)
|
|||||||
|
|
||||||
virUUIDFormat(dom->def->uuid, uuidstr);
|
virUUIDFormat(dom->def->uuid, uuidstr);
|
||||||
virReportError(VIR_ERR_NO_DOMAIN,
|
virReportError(VIR_ERR_NO_DOMAIN,
|
||||||
_("no domain with matching uuid '%s' (%s)"),
|
_("no domain with matching uuid '%1$s' (%2$s)"),
|
||||||
uuidstr, dom->def->name);
|
uuidstr, dom->def->name);
|
||||||
|
|
||||||
return -1;
|
return -1;
|
||||||
@ -816,7 +816,7 @@ vzDomainDefineXMLFlags(virConnectPtr conn, const char *xml, unsigned int flags)
|
|||||||
goto cleanup;
|
goto cleanup;
|
||||||
} else {
|
} else {
|
||||||
virReportError(VIR_ERR_INVALID_ARG,
|
virReportError(VIR_ERR_INVALID_ARG,
|
||||||
_("Unsupported OS type: %s"),
|
_("Unsupported OS type: %1$s"),
|
||||||
virDomainOSTypeToString(def->os.type));
|
virDomainOSTypeToString(def->os.type));
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
@ -1705,7 +1705,7 @@ vzDomainBlockStatsImpl(virDomainObj *dom,
|
|||||||
|
|
||||||
if (*path) {
|
if (*path) {
|
||||||
if ((idx = virDomainDiskIndexByName(dom->def, path, false)) < 0) {
|
if ((idx = virDomainDiskIndexByName(dom->def, path, false)) < 0) {
|
||||||
virReportError(VIR_ERR_INVALID_ARG, _("invalid path: %s"), path);
|
virReportError(VIR_ERR_INVALID_ARG, _("invalid path: %1$s"), path);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
if (prlsdkGetBlockStats(privdom->stats,
|
if (prlsdkGetBlockStats(privdom->stats,
|
||||||
@ -1956,7 +1956,7 @@ static int vzConnectGetMaxVcpus(virConnectPtr conn,
|
|||||||
return 1028;
|
return 1028;
|
||||||
|
|
||||||
virReportError(VIR_ERR_INVALID_ARG,
|
virReportError(VIR_ERR_INVALID_ARG,
|
||||||
_("unknown type '%s'"), type);
|
_("unknown type '%1$s'"), type);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2129,7 +2129,7 @@ vzSnapObjFromName(virDomainSnapshotObjList *snapshots, const char *name)
|
|||||||
snap = virDomainSnapshotFindByName(snapshots, name);
|
snap = virDomainSnapshotFindByName(snapshots, name);
|
||||||
if (!snap)
|
if (!snap)
|
||||||
virReportError(VIR_ERR_NO_DOMAIN_SNAPSHOT,
|
virReportError(VIR_ERR_NO_DOMAIN_SNAPSHOT,
|
||||||
_("no domain snapshot with matching name '%s'"), name);
|
_("no domain snapshot with matching name '%1$s'"), name);
|
||||||
|
|
||||||
return snap;
|
return snap;
|
||||||
}
|
}
|
||||||
@ -2452,7 +2452,7 @@ vzDomainSnapshotGetParent(virDomainSnapshotPtr snapshot, unsigned int flags)
|
|||||||
|
|
||||||
if (!snap->def->parent_name) {
|
if (!snap->def->parent_name) {
|
||||||
virReportError(VIR_ERR_NO_DOMAIN_SNAPSHOT,
|
virReportError(VIR_ERR_NO_DOMAIN_SNAPSHOT,
|
||||||
_("snapshot '%s' does not have a parent"),
|
_("snapshot '%1$s' does not have a parent"),
|
||||||
snap->def->name);
|
snap->def->name);
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
@ -3037,21 +3037,21 @@ vzParseVzURI(const char *uri_str)
|
|||||||
|
|
||||||
if (!uri->scheme || !uri->server) {
|
if (!uri->scheme || !uri->server) {
|
||||||
virReportError(VIR_ERR_INVALID_ARG,
|
virReportError(VIR_ERR_INVALID_ARG,
|
||||||
_("scheme and host are mandatory vz migration URI: %s"),
|
_("scheme and host are mandatory vz migration URI: %1$s"),
|
||||||
uri_str);
|
uri_str);
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (uri->user || uri->path || uri->query || uri->fragment) {
|
if (uri->user || uri->path || uri->query || uri->fragment) {
|
||||||
virReportError(VIR_ERR_INVALID_ARG,
|
virReportError(VIR_ERR_INVALID_ARG,
|
||||||
_("only scheme, host and port are supported in "
|
_("only scheme, host and port are supported in vz migration URI: %1$s"),
|
||||||
"vz migration URI: %s"), uri_str);
|
uri_str);
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (STRNEQ(uri->scheme, "vzmigr")) {
|
if (STRNEQ(uri->scheme, "vzmigr")) {
|
||||||
virReportError(VIR_ERR_ARGUMENT_UNSUPPORTED,
|
virReportError(VIR_ERR_ARGUMENT_UNSUPPORTED,
|
||||||
_("unsupported scheme %s in migration URI %s"),
|
_("unsupported scheme %1$s in migration URI %2$s"),
|
||||||
uri->scheme, uri_str);
|
uri->scheme, uri_str);
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
@ -3760,7 +3760,7 @@ vzConnectGetAllDomainStats(virConnectPtr conn,
|
|||||||
} else if ((flags & VIR_CONNECT_GET_ALL_DOMAINS_STATS_ENFORCE_STATS) &&
|
} else if ((flags & VIR_CONNECT_GET_ALL_DOMAINS_STATS_ENFORCE_STATS) &&
|
||||||
(stats & ~supported)) {
|
(stats & ~supported)) {
|
||||||
virReportError(VIR_ERR_ARGUMENT_UNSUPPORTED,
|
virReportError(VIR_ERR_ARGUMENT_UNSUPPORTED,
|
||||||
_("Stats types bits 0x%x are not supported by this daemon"),
|
_("Stats types bits 0x%1$x are not supported by this daemon"),
|
||||||
stats & ~supported);
|
stats & ~supported);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
@ -3937,7 +3937,7 @@ vzDomainBlockResize(virDomainPtr domain,
|
|||||||
|
|
||||||
if (!(disk = virDomainDiskByName(dom->def, path, false))) {
|
if (!(disk = virDomainDiskByName(dom->def, path, false))) {
|
||||||
virReportError(VIR_ERR_INVALID_ARG,
|
virReportError(VIR_ERR_INVALID_ARG,
|
||||||
_("invalid path: %s"), path);
|
_("invalid path: %1$s"), path);
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -4091,7 +4091,7 @@ vzStateInitialize(bool privileged,
|
|||||||
vz_driver_privileged = privileged;
|
vz_driver_privileged = privileged;
|
||||||
|
|
||||||
if (g_mkdir_with_parents(VZ_STATEDIR, S_IRWXU) < 0) {
|
if (g_mkdir_with_parents(VZ_STATEDIR, S_IRWXU) < 0) {
|
||||||
virReportSystemError(errno, _("cannot create state directory '%s'"),
|
virReportSystemError(errno, _("cannot create state directory '%1$s'"),
|
||||||
VZ_STATEDIR);
|
VZ_STATEDIR);
|
||||||
return VIR_DRV_STATE_INIT_ERROR;
|
return VIR_DRV_STATE_INIT_ERROR;
|
||||||
}
|
}
|
||||||
|
@ -84,7 +84,7 @@ logPrlErrorHelper(PRL_RESULT err, const char *filename,
|
|||||||
|
|
||||||
virReportErrorHelper(VIR_FROM_THIS, VIR_ERR_INTERNAL_ERROR,
|
virReportErrorHelper(VIR_FROM_THIS, VIR_ERR_INTERNAL_ERROR,
|
||||||
filename, funcname, linenr,
|
filename, funcname, linenr,
|
||||||
_("%s %s"), msg1, msg2);
|
_("%1$s %2$s"), msg1, msg2);
|
||||||
|
|
||||||
VIR_FREE(msg1);
|
VIR_FREE(msg1);
|
||||||
VIR_FREE(msg2);
|
VIR_FREE(msg2);
|
||||||
@ -131,7 +131,7 @@ logPrlEventErrorHelper(PRL_HANDLE event, const char *filename,
|
|||||||
|
|
||||||
virReportErrorHelper(VIR_FROM_THIS, VIR_ERR_INTERNAL_ERROR,
|
virReportErrorHelper(VIR_FROM_THIS, VIR_ERR_INTERNAL_ERROR,
|
||||||
filename, funcname, linenr,
|
filename, funcname, linenr,
|
||||||
_("%s %s"), msg1, msg2);
|
_("%1$s %2$s"), msg1, msg2);
|
||||||
VIR_FREE(msg1);
|
VIR_FREE(msg1);
|
||||||
VIR_FREE(msg2);
|
VIR_FREE(msg2);
|
||||||
}
|
}
|
||||||
@ -463,7 +463,7 @@ prlsdkSdkDomainLookupByUUID(struct _vzDriver *driver, const unsigned char *uuid)
|
|||||||
PGVC_SEARCH_BY_UUID, &sdkdom) < 0) {
|
PGVC_SEARCH_BY_UUID, &sdkdom) < 0) {
|
||||||
virUUIDFormat(uuid, uuidstr);
|
virUUIDFormat(uuid, uuidstr);
|
||||||
virReportError(VIR_ERR_NO_DOMAIN,
|
virReportError(VIR_ERR_NO_DOMAIN,
|
||||||
_("no domain with matching uuid '%s'"), uuidstr);
|
_("no domain with matching uuid '%1$s'"), uuidstr);
|
||||||
return PRL_INVALID_HANDLE;
|
return PRL_INVALID_HANDLE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -478,7 +478,7 @@ prlsdkSdkDomainLookupByName(struct _vzDriver *driver, const char *name)
|
|||||||
if (prlsdkSdkDomainLookup(driver, name,
|
if (prlsdkSdkDomainLookup(driver, name,
|
||||||
PGVC_SEARCH_BY_NAME, &sdkdom) < 0) {
|
PGVC_SEARCH_BY_NAME, &sdkdom) < 0) {
|
||||||
virReportError(VIR_ERR_NO_DOMAIN,
|
virReportError(VIR_ERR_NO_DOMAIN,
|
||||||
_("no domain with matching name '%s'"), name);
|
_("no domain with matching name '%1$s'"), name);
|
||||||
return PRL_INVALID_HANDLE;
|
return PRL_INVALID_HANDLE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -609,7 +609,7 @@ prlsdkGetDiskId(PRL_HANDLE disk, virDomainDiskBus *bus, char **dst)
|
|||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
virReportError(VIR_ERR_INTERNAL_ERROR,
|
virReportError(VIR_ERR_INTERNAL_ERROR,
|
||||||
_("Unknown disk bus: %X"), ifType);
|
_("Unknown disk bus: %1$X"), ifType);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -724,7 +724,7 @@ prlsdkGetFSInfo(PRL_HANDLE prldisk,
|
|||||||
goto cleanup;
|
goto cleanup;
|
||||||
if (STRNEQ("libvirt", uri->scheme)) {
|
if (STRNEQ("libvirt", uri->scheme)) {
|
||||||
virReportError(VIR_ERR_INTERNAL_ERROR,
|
virReportError(VIR_ERR_INTERNAL_ERROR,
|
||||||
_("Unknown uri scheme: '%s'"),
|
_("Unknown uri scheme: '%1$s'"),
|
||||||
uri->scheme);
|
uri->scheme);
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
@ -732,17 +732,17 @@ prlsdkGetFSInfo(PRL_HANDLE prldisk,
|
|||||||
if (!(matches = g_strsplit(uri->path, "/", 0)) ||
|
if (!(matches = g_strsplit(uri->path, "/", 0)) ||
|
||||||
!matches[0]) {
|
!matches[0]) {
|
||||||
virReportError(VIR_ERR_INTERNAL_ERROR,
|
virReportError(VIR_ERR_INTERNAL_ERROR,
|
||||||
_("splitting StorageUrl failed %s"), uri->path);
|
_("splitting StorageUrl failed %1$s"), uri->path);
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
if (!matches[1]) {
|
if (!matches[1]) {
|
||||||
virReportError(VIR_ERR_INTERNAL_ERROR,
|
virReportError(VIR_ERR_INTERNAL_ERROR,
|
||||||
_("can't identify pool in uri %s "), uri->path);
|
_("can't identify pool in uri %1$s "), uri->path);
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
if (!matches[2]) {
|
if (!matches[2]) {
|
||||||
virReportError(VIR_ERR_INTERNAL_ERROR,
|
virReportError(VIR_ERR_INTERNAL_ERROR,
|
||||||
_("can't identify volume in uri %s"), uri->path);
|
_("can't identify volume in uri %1$s"), uri->path);
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
fs->type = VIR_DOMAIN_FS_TYPE_VOLUME;
|
fs->type = VIR_DOMAIN_FS_TYPE_VOLUME;
|
||||||
@ -1068,7 +1068,7 @@ prlsdkGetNetInfo(PRL_HANDLE netAdapter, virDomainNetDef *net, bool isCt)
|
|||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
virReportError(VIR_ERR_INTERNAL_ERROR,
|
virReportError(VIR_ERR_INTERNAL_ERROR,
|
||||||
_("Unknown adapter type: %X"), type);
|
_("Unknown adapter type: %1$X"), type);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1185,7 +1185,7 @@ prlsdkGetSerialInfo(PRL_HANDLE serialPort, virDomainChrDef *chr)
|
|||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
virReportError(VIR_ERR_INTERNAL_ERROR,
|
virReportError(VIR_ERR_INTERNAL_ERROR,
|
||||||
_("Unknown serial type: %X"), emulatedType);
|
_("Unknown serial type: %1$X"), emulatedType);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1450,7 +1450,7 @@ prlsdkConvertDomainType(PRL_HANDLE sdkdom, virDomainDef *def)
|
|||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
virReportError(VIR_ERR_INTERNAL_ERROR,
|
virReportError(VIR_ERR_INTERNAL_ERROR,
|
||||||
_("Unknown domain type: %X"), domainType);
|
_("Unknown domain type: %1$X"), domainType);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1475,7 +1475,7 @@ prlsdkConvertCpuMode(PRL_HANDLE sdkdom, virDomainDef *def)
|
|||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
virReportError(VIR_ERR_INTERNAL_ERROR,
|
virReportError(VIR_ERR_INTERNAL_ERROR,
|
||||||
_("Unknown CPU mode: %X"), cpuMode);
|
_("Unknown CPU mode: %1$X"), cpuMode);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1600,7 +1600,7 @@ prlsdkBootOrderCheck(PRL_HANDLE sdkdom, PRL_DEVICE_TYPE sdkType, int sdkIndex,
|
|||||||
dev = prlsdkGetDevByDevIndex(sdkdom, sdkType, sdkIndex);
|
dev = prlsdkGetDevByDevIndex(sdkdom, sdkType, sdkIndex);
|
||||||
if (dev == PRL_INVALID_HANDLE) {
|
if (dev == PRL_INVALID_HANDLE) {
|
||||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||||
_("Can't find boot device of type: %d, device index: %d"),
|
_("Can't find boot device of type: %1$d, device index: %2$d"),
|
||||||
sdkType, sdkIndex);
|
sdkType, sdkIndex);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
@ -1617,13 +1617,13 @@ prlsdkBootOrderCheck(PRL_HANDLE sdkdom, PRL_DEVICE_TYPE sdkType, int sdkIndex,
|
|||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||||
_("Unsupported disk type %d"), sdkType);
|
_("Unsupported disk type %1$d"), sdkType);
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!(disk = virFindDiskBootIndex(def, device, bootIndex))) {
|
if (!(disk = virFindDiskBootIndex(def, device, bootIndex))) {
|
||||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||||
_("Can't find boot device of type: %s, index: %d"),
|
_("Can't find boot device of type: %1$s, index: %2$d"),
|
||||||
virDomainDiskDeviceTypeToString(device), bootIndex);
|
virDomainDiskDeviceTypeToString(device), bootIndex);
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
@ -1642,7 +1642,7 @@ prlsdkBootOrderCheck(PRL_HANDLE sdkdom, PRL_DEVICE_TYPE sdkType, int sdkIndex,
|
|||||||
|
|
||||||
if (bootIndex >= def->nnets) {
|
if (bootIndex >= def->nnets) {
|
||||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||||
_("Can't find network boot device for index: %d"),
|
_("Can't find network boot device for index: %1$d"),
|
||||||
bootIndex);
|
bootIndex);
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
@ -1653,7 +1653,7 @@ prlsdkBootOrderCheck(PRL_HANDLE sdkdom, PRL_DEVICE_TYPE sdkType, int sdkIndex,
|
|||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||||
_("Unexpected device type %d"), sdkType);
|
_("Unexpected device type %1$d"), sdkType);
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1732,7 +1732,7 @@ prlsdkConvertBootOrderVm(PRL_HANDLE sdkdom, virDomainDef *def)
|
|||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||||
_("Unexpected boot device type %i"), sdkType);
|
_("Unexpected boot device type %1$i"), sdkType);
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1835,7 +1835,7 @@ prlsdkLoadDomain(struct _vzDriver *driver,
|
|||||||
if (autostart != PAO_VM_START_ON_LOAD &&
|
if (autostart != PAO_VM_START_ON_LOAD &&
|
||||||
autostart != PAO_VM_START_MANUAL) {
|
autostart != PAO_VM_START_MANUAL) {
|
||||||
virReportError(VIR_ERR_INTERNAL_ERROR,
|
virReportError(VIR_ERR_INTERNAL_ERROR,
|
||||||
_("Unknown autostart mode: %X"), autostart);
|
_("Unknown autostart mode: %1$X"), autostart);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2801,8 +2801,7 @@ static int prlsdkCheckSerialUnsupportedParams(virDomainChrDef *chr)
|
|||||||
if (chr->source->type == VIR_DOMAIN_CHR_TYPE_TCP &&
|
if (chr->source->type == VIR_DOMAIN_CHR_TYPE_TCP &&
|
||||||
chr->source->data.tcp.protocol != VIR_DOMAIN_CHR_TCP_PROTOCOL_RAW) {
|
chr->source->data.tcp.protocol != VIR_DOMAIN_CHR_TCP_PROTOCOL_RAW) {
|
||||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||||
_("Protocol '%s' is not supported for "
|
_("Protocol '%1$s' is not supported for tcp character device."),
|
||||||
"tcp character device."),
|
|
||||||
virDomainChrTcpProtocolTypeToString(chr->source->data.tcp.protocol));
|
virDomainChrTcpProtocolTypeToString(chr->source->data.tcp.protocol));
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
@ -3151,8 +3150,7 @@ static int prlsdkConfigureGateways(PRL_HANDLE sdknet, virDomainNetDef *net)
|
|||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||||
_("Unsupported address family %d "
|
_("Unsupported address family %1$d Only IPv4 or IPv6 default gateway"),
|
||||||
"Only IPv4 or IPv6 default gateway"),
|
|
||||||
VIR_SOCKET_ADDR_FAMILY(gateway));
|
VIR_SOCKET_ADDR_FAMILY(gateway));
|
||||||
|
|
||||||
return -1;
|
return -1;
|
||||||
@ -3354,7 +3352,7 @@ prlsdkFindNetByMAC(PRL_HANDLE sdkdom, virMacAddr *mac)
|
|||||||
}
|
}
|
||||||
|
|
||||||
virReportError(VIR_ERR_INTERNAL_ERROR,
|
virReportError(VIR_ERR_INTERNAL_ERROR,
|
||||||
_("No net with mac '%s'"), virMacAddrFormat(mac, virMac));
|
_("No net with mac '%1$s'"), virMacAddrFormat(mac, virMac));
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
PrlHandle_Free(adapter);
|
PrlHandle_Free(adapter);
|
||||||
@ -3502,7 +3500,7 @@ prlsdkGetDisk(PRL_HANDLE sdkdom, virDomainDiskDef *disk)
|
|||||||
}
|
}
|
||||||
|
|
||||||
virReportError(VIR_ERR_INTERNAL_ERROR,
|
virReportError(VIR_ERR_INTERNAL_ERROR,
|
||||||
_("No disk with bus '%s' and target '%s'"),
|
_("No disk with bus '%1$s' and target '%2$s'"),
|
||||||
virDomainDiskBusTypeToString(disk->bus), disk->dst);
|
virDomainDiskBusTypeToString(disk->bus), disk->dst);
|
||||||
return PRL_INVALID_HANDLE;
|
return PRL_INVALID_HANDLE;
|
||||||
|
|
||||||
@ -3581,7 +3579,7 @@ prlsdkAttachDevice(struct _vzDriver *driver,
|
|||||||
case VIR_DOMAIN_DEVICE_AUDIO:
|
case VIR_DOMAIN_DEVICE_AUDIO:
|
||||||
case VIR_DOMAIN_DEVICE_CRYPTO:
|
case VIR_DOMAIN_DEVICE_CRYPTO:
|
||||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||||
_("attaching device type '%s' is unsupported"),
|
_("attaching device type '%1$s' is unsupported"),
|
||||||
virDomainDeviceTypeToString(dev->type));
|
virDomainDeviceTypeToString(dev->type));
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
@ -3671,7 +3669,7 @@ prlsdkDetachDevice(struct _vzDriver *driver G_GNUC_UNUSED,
|
|||||||
case VIR_DOMAIN_DEVICE_AUDIO:
|
case VIR_DOMAIN_DEVICE_AUDIO:
|
||||||
case VIR_DOMAIN_DEVICE_CRYPTO:
|
case VIR_DOMAIN_DEVICE_CRYPTO:
|
||||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||||
_("detaching device type '%s' is unsupported"),
|
_("detaching device type '%1$s' is unsupported"),
|
||||||
virDomainDeviceTypeToString(dev->type));
|
virDomainDeviceTypeToString(dev->type));
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
@ -3751,7 +3749,7 @@ prlsdkUpdateDevice(struct _vzDriver *driver,
|
|||||||
case VIR_DOMAIN_DEVICE_AUDIO:
|
case VIR_DOMAIN_DEVICE_AUDIO:
|
||||||
case VIR_DOMAIN_DEVICE_CRYPTO:
|
case VIR_DOMAIN_DEVICE_CRYPTO:
|
||||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||||
_("updating device type '%s' is unsupported"),
|
_("updating device type '%1$s' is unsupported"),
|
||||||
virDomainDeviceTypeToString(dev->type));
|
virDomainDeviceTypeToString(dev->type));
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
@ -3878,7 +3876,7 @@ prlsdkSetBootOrderVm(PRL_HANDLE sdkdom, virDomainDef *def)
|
|||||||
case VIR_DOMAIN_BOOT_LAST:
|
case VIR_DOMAIN_BOOT_LAST:
|
||||||
default:
|
default:
|
||||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||||
_("Unsupported boot device type: '%s'"),
|
_("Unsupported boot device type: '%1$s'"),
|
||||||
virDomainBootTypeToString(virType));
|
virDomainBootTypeToString(virType));
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
@ -3965,7 +3963,7 @@ prlsdkDoApplyConfig(struct _vzDriver *driver,
|
|||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
virReportError(VIR_ERR_INTERNAL_ERROR,
|
virReportError(VIR_ERR_INTERNAL_ERROR,
|
||||||
_("Unknown CPU mode: %s"),
|
_("Unknown CPU mode: %1$s"),
|
||||||
virArchToString(def->os.arch));
|
virArchToString(def->os.arch));
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
@ -4111,8 +4109,8 @@ virStorageTranslatePoolLocal(virConnectPtr conn, virStorageSource *src)
|
|||||||
return -1;
|
return -1;
|
||||||
if (virStoragePoolIsActive(pool) != 1) {
|
if (virStoragePoolIsActive(pool) != 1) {
|
||||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||||
_("storage pool '%s' containing volume '%s' "
|
_("storage pool '%1$s' containing volume '%2$s' is not active"),
|
||||||
"is not active"), src->srcpool->pool,
|
src->srcpool->pool,
|
||||||
src->srcpool->volume);
|
src->srcpool->volume);
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
@ -4125,7 +4123,7 @@ virStorageTranslatePoolLocal(virConnectPtr conn, virStorageSource *src)
|
|||||||
|
|
||||||
if (info.type != VIR_STORAGE_VOL_PLOOP) {
|
if (info.type != VIR_STORAGE_VOL_PLOOP) {
|
||||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||||
_("Unsupported volume format '%s'"),
|
_("Unsupported volume format '%1$s'"),
|
||||||
virStorageVolTypeToString(info.type));
|
virStorageVolTypeToString(info.type));
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
@ -4398,7 +4396,7 @@ prlsdkGetBlockStats(PRL_HANDLE sdkstats,
|
|||||||
case VIR_DOMAIN_DISK_BUS_LAST:
|
case VIR_DOMAIN_DISK_BUS_LAST:
|
||||||
default:
|
default:
|
||||||
virReportError(VIR_ERR_INTERNAL_ERROR,
|
virReportError(VIR_ERR_INTERNAL_ERROR,
|
||||||
_("Unknown disk bus: %X"), disk->bus);
|
_("Unknown disk bus: %1$X"), disk->bus);
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -4453,7 +4451,7 @@ prlsdkFindNetByPath(PRL_HANDLE sdkdom, const char *path)
|
|||||||
|
|
||||||
if (net == PRL_INVALID_HANDLE)
|
if (net == PRL_INVALID_HANDLE)
|
||||||
virReportError(VIR_ERR_INVALID_ARG,
|
virReportError(VIR_ERR_INVALID_ARG,
|
||||||
_("invalid path, '%s' is not a known interface"), path);
|
_("invalid path, '%1$s' is not a known interface"), path);
|
||||||
return net;
|
return net;
|
||||||
|
|
||||||
error:
|
error:
|
||||||
@ -4627,7 +4625,7 @@ prlsdkParseDateTime(const char *str)
|
|||||||
/* second */
|
/* second */
|
||||||
virStrToLong_i(tmp+1, &tmp, 10, &sec) < 0 || *tmp != '\0') {
|
virStrToLong_i(tmp+1, &tmp, 10, &sec) < 0 || *tmp != '\0') {
|
||||||
virReportError(VIR_ERR_INTERNAL_ERROR,
|
virReportError(VIR_ERR_INTERNAL_ERROR,
|
||||||
_("unexpected DateTime format: '%s'"), str);
|
_("unexpected DateTime format: '%1$s'"), str);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -4712,7 +4710,7 @@ prlsdkParseSnapshotTree(const char *treexml)
|
|||||||
def->state = VIR_DOMAIN_SHUTOFF;
|
def->state = VIR_DOMAIN_SHUTOFF;
|
||||||
} else {
|
} else {
|
||||||
virReportError(VIR_ERR_INTERNAL_ERROR,
|
virReportError(VIR_ERR_INTERNAL_ERROR,
|
||||||
_("unexpected snapshot state: %s"), xmlstr);
|
_("unexpected snapshot state: %1$s"), xmlstr);
|
||||||
}
|
}
|
||||||
VIR_FREE(xmlstr);
|
VIR_FREE(xmlstr);
|
||||||
|
|
||||||
|
@ -81,7 +81,7 @@ vzDomObjFromDomain(virDomainPtr domain)
|
|||||||
if (!vm) {
|
if (!vm) {
|
||||||
virUUIDFormat(domain->uuid, uuidstr);
|
virUUIDFormat(domain->uuid, uuidstr);
|
||||||
virReportError(VIR_ERR_NO_DOMAIN,
|
virReportError(VIR_ERR_NO_DOMAIN,
|
||||||
_("no domain with matching uuid '%s' (%s)"),
|
_("no domain with matching uuid '%1$s' (%2$s)"),
|
||||||
uuidstr, domain->name);
|
uuidstr, domain->name);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
@ -202,15 +202,15 @@ vzCheckDiskAddressDriveUnsupportedParams(virDomainDiskDef *disk)
|
|||||||
if (drive->controller > 0) {
|
if (drive->controller > 0) {
|
||||||
/* We have only one controller of each type */
|
/* We have only one controller of each type */
|
||||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||||
_("Invalid drive address of disk %s, vz driver "
|
_("Invalid drive address of disk %1$s, vz driver supports only one controller."),
|
||||||
"supports only one controller."), disk->dst);
|
disk->dst);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (drive->target > 0) {
|
if (drive->target > 0) {
|
||||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||||
_("Invalid drive address of disk %s, vz driver "
|
_("Invalid drive address of disk %1$s, vz driver supports only target 0."),
|
||||||
"supports only target 0."), disk->dst);
|
disk->dst);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -218,8 +218,7 @@ vzCheckDiskAddressDriveUnsupportedParams(virDomainDiskDef *disk)
|
|||||||
case VIR_DOMAIN_DISK_BUS_IDE:
|
case VIR_DOMAIN_DISK_BUS_IDE:
|
||||||
if (drive->unit > 1) {
|
if (drive->unit > 1) {
|
||||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||||
_("Invalid drive address of disk %s, vz driver "
|
_("Invalid drive address of disk %1$s, vz driver supports only units 0-1 for IDE bus."),
|
||||||
"supports only units 0-1 for IDE bus."),
|
|
||||||
disk->dst);
|
disk->dst);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
@ -228,8 +227,7 @@ vzCheckDiskAddressDriveUnsupportedParams(virDomainDiskDef *disk)
|
|||||||
case VIR_DOMAIN_DISK_BUS_SATA:
|
case VIR_DOMAIN_DISK_BUS_SATA:
|
||||||
if (drive->bus > 0) {
|
if (drive->bus > 0) {
|
||||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||||
_("Invalid drive address of disk %s, vz driver "
|
_("Invalid drive address of disk %1$s, vz driver supports only bus 0 for SATA and SCSI bus."),
|
||||||
"supports only bus 0 for SATA and SCSI bus."),
|
|
||||||
disk->dst);
|
disk->dst);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
@ -250,15 +248,14 @@ vzCheckDiskAddressDriveUnsupportedParams(virDomainDiskDef *disk)
|
|||||||
|
|
||||||
if (virDiskNameToBusDeviceIndex(disk, &busIdx, &devIdx) < 0) {
|
if (virDiskNameToBusDeviceIndex(disk, &busIdx, &devIdx) < 0) {
|
||||||
virReportError(VIR_ERR_INTERNAL_ERROR,
|
virReportError(VIR_ERR_INTERNAL_ERROR,
|
||||||
_("cannot convert disk '%s' to bus/device index"),
|
_("cannot convert disk '%1$s' to bus/device index"),
|
||||||
disk->dst);
|
disk->dst);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (busIdx != drive->bus || devIdx != drive->unit) {
|
if (busIdx != drive->bus || devIdx != drive->unit) {
|
||||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||||
_("Invalid drive address of disk %s, vz driver "
|
_("Invalid drive address of disk %1$s, vz driver does not support non default name mappings."),
|
||||||
"does not support non default name mappings."),
|
|
||||||
disk->dst);
|
disk->dst);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
@ -418,7 +415,7 @@ vzCheckUnsupportedDisk(const virDomainDef *def,
|
|||||||
if (virDomainDiskGetFormat(disk) != VIR_STORAGE_FILE_NONE &&
|
if (virDomainDiskGetFormat(disk) != VIR_STORAGE_FILE_NONE &&
|
||||||
virDomainDiskGetFormat(disk) != diskFormat) {
|
virDomainDiskGetFormat(disk) != diskFormat) {
|
||||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||||
_("Unsupported format of disk %s"),
|
_("Unsupported format of disk %1$s"),
|
||||||
disk->src->path);
|
disk->src->path);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
@ -430,7 +427,7 @@ vzCheckUnsupportedDisk(const virDomainDef *def,
|
|||||||
|
|
||||||
if (vzCaps->diskBuses[i] == VIR_DOMAIN_DISK_BUS_LAST) {
|
if (vzCaps->diskBuses[i] == VIR_DOMAIN_DISK_BUS_LAST) {
|
||||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||||
_("Unsupported disk bus type %s"),
|
_("Unsupported disk bus type %1$s"),
|
||||||
virDomainDiskBusTypeToString(disk->bus));
|
virDomainDiskBusTypeToString(disk->bus));
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
@ -454,7 +451,7 @@ vzCheckUnsupportedControllers(const virDomainDef *def, struct _vzCapabilities *v
|
|||||||
|
|
||||||
if (vzCaps->controllerTypes[j] == VIR_DOMAIN_CONTROLLER_TYPE_LAST) {
|
if (vzCaps->controllerTypes[j] == VIR_DOMAIN_CONTROLLER_TYPE_LAST) {
|
||||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||||
_("Unsupported controller type %s"),
|
_("Unsupported controller type %1$s"),
|
||||||
virDomainControllerTypeToString(controller->type));
|
virDomainControllerTypeToString(controller->type));
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
@ -465,7 +462,7 @@ vzCheckUnsupportedControllers(const virDomainDef *def, struct _vzCapabilities *v
|
|||||||
controller->model != vzCaps->scsiControllerModel) {
|
controller->model != vzCaps->scsiControllerModel) {
|
||||||
|
|
||||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||||
_("Unsupported SCSI controller model %s"),
|
_("Unsupported SCSI controller model %1$s"),
|
||||||
virDomainControllerModelSCSITypeToString(controller->model));
|
virDomainControllerModelSCSITypeToString(controller->model));
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
@ -485,7 +482,7 @@ int vzGetDefaultSCSIModel(struct _vzDriver *driver,
|
|||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
virReportError(VIR_ERR_INTERNAL_ERROR,
|
virReportError(VIR_ERR_INTERNAL_ERROR,
|
||||||
_("Unknown SCSI controller model %s"),
|
_("Unknown SCSI controller model %1$s"),
|
||||||
virDomainControllerModelSCSITypeToString(
|
virDomainControllerModelSCSITypeToString(
|
||||||
driver->vzCaps.scsiControllerModel));
|
driver->vzCaps.scsiControllerModel));
|
||||||
return -1;
|
return -1;
|
||||||
|
@ -44,7 +44,7 @@
|
|||||||
char uuidstr[VIR_UUID_STRING_BUFLEN]; \
|
char uuidstr[VIR_UUID_STRING_BUFLEN]; \
|
||||||
virUUIDFormat(domain->uuid, uuidstr); \
|
virUUIDFormat(domain->uuid, uuidstr); \
|
||||||
virReportError(VIR_ERR_NO_DOMAIN, \
|
virReportError(VIR_ERR_NO_DOMAIN, \
|
||||||
_("no domain with matching uuid '%s'"), uuidstr); \
|
_("no domain with matching uuid '%1$s'"), uuidstr); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
#define PARALLELS_DOMAIN_ROUTED_NETWORK_NAME "host-routed"
|
#define PARALLELS_DOMAIN_ROUTED_NETWORK_NAME "host-routed"
|
||||||
|
Loading…
Reference in New Issue
Block a user