#define VIR_FROM_THIS VIR_FROM_RPC
-#define virNetError(code, ...) \
- virReportErrorHelper(VIR_FROM_THIS, code, __FILE__, \
- __FUNCTION__, __LINE__, __VA_ARGS__)
-
#if SIZEOF_LONG < 8
# define HYPER_TO_TYPE(_type, _to, _from) \
do { \
if ((_from) != (_type)(_from)) { \
- virNetError(VIR_ERR_OVERFLOW, \
- _("conversion from hyper to %s overflowed"), \
- #_type); \
+ virReportError(VIR_ERR_OVERFLOW, \
+ _("conversion from hyper to %s overflowed"), \
+ #_type); \
goto cleanup; \
} \
(_to) = (_from); \
virMutexLock(&priv->lock);
/* Already opened? */
if (priv->conn) {
- virNetError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection already open"));
+ virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection already open"));
goto cleanup;
}
if (virNetServerKeepAliveRequired(server) && !priv->keepalive_supported) {
- virNetError(VIR_ERR_OPERATION_FAILED, "%s",
- _("keepalive support is required to connect"));
+ virReportError(VIR_ERR_OPERATION_FAILED, "%s",
+ _("keepalive support is required to connect"));
goto cleanup;
}
virNetServerClientGetPrivateData(client);
if (!priv->conn) {
- virNetError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
+ virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
goto cleanup;
}
}
break;
default:
- virNetError(VIR_ERR_RPC, _("unknown parameter type: %d"),
- params[i].type);
+ virReportError(VIR_ERR_RPC, _("unknown parameter type: %d"),
+ params[i].type);
goto cleanup;
}
j++;
/* Check the length of the returned list carefully. */
if (args_params_len > limit) {
- virNetError(VIR_ERR_INTERNAL_ERROR, "%s", _("nparams too large"));
+ virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("nparams too large"));
goto cleanup;
}
if (VIR_ALLOC_N(params, args_params_len) < 0) {
for (i = 0; i < args_params_len; ++i) {
if (virStrcpyStatic(params[i].field,
args_params_val[i].field) == NULL) {
- virNetError(VIR_ERR_INTERNAL_ERROR,
- _("Parameter %s too big for destination"),
- args_params_val[i].field);
+ virReportError(VIR_ERR_INTERNAL_ERROR,
+ _("Parameter %s too big for destination"),
+ args_params_val[i].field);
goto cleanup;
}
params[i].type = args_params_val[i].value.type;
}
break;
default:
- virNetError(VIR_ERR_INTERNAL_ERROR, _("unknown parameter type: %d"),
- params[i].type);
+ virReportError(VIR_ERR_INTERNAL_ERROR, _("unknown parameter type: %d"),
+ params[i].type);
goto cleanup;
}
}
virNetServerClientGetPrivateData(client);
if (!priv->conn) {
- virNetError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
+ virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
goto cleanup;
}
if (nparams > REMOTE_DOMAIN_SCHEDULER_PARAMETERS_MAX) {
- virNetError(VIR_ERR_INTERNAL_ERROR, "%s", _("nparams too large"));
+ virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("nparams too large"));
goto cleanup;
}
if (VIR_ALLOC_N(params, nparams) < 0)
struct daemonClientPrivate *priv = virNetServerClientGetPrivateData(client);
if (!priv->conn) {
- virNetError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
+ virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
goto cleanup;
}
virNetServerClientGetPrivateData(client);
if (!priv->conn) {
- virNetError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
+ virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
goto cleanup;
}
if (nparams > REMOTE_DOMAIN_SCHEDULER_PARAMETERS_MAX) {
- virNetError(VIR_ERR_INTERNAL_ERROR, "%s", _("nparams too large"));
+ virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("nparams too large"));
goto cleanup;
}
if (VIR_ALLOC_N(params, nparams) < 0)
virNetServerClientGetPrivateData(client);
if (!priv->conn) {
- virNetError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
+ virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
goto cleanup;
}
if (args->maxStats > REMOTE_DOMAIN_MEMORY_STATS_MAX) {
- virNetError(VIR_ERR_INTERNAL_ERROR, "%s",
- _("maxStats > REMOTE_DOMAIN_MEMORY_STATS_MAX"));
+ virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
+ _("maxStats > REMOTE_DOMAIN_MEMORY_STATS_MAX"));
goto cleanup;
}
virNetServerClientGetPrivateData(client);
if (!priv->conn) {
- virNetError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
+ virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
goto cleanup;
}
flags = args->flags;
if (size > REMOTE_DOMAIN_BLOCK_PEEK_BUFFER_MAX) {
- virNetError(VIR_ERR_INTERNAL_ERROR,
- "%s", _("size > maximum buffer size"));
+ virReportError(VIR_ERR_INTERNAL_ERROR,
+ "%s", _("size > maximum buffer size"));
goto cleanup;
}
virNetServerClientGetPrivateData(client);
if (!priv->conn) {
- virNetError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
+ virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
goto cleanup;
}
flags = args->flags;
if (nparams > REMOTE_DOMAIN_BLOCK_STATS_PARAMETERS_MAX) {
- virNetError(VIR_ERR_INTERNAL_ERROR, "%s", _("nparams too large"));
+ virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("nparams too large"));
goto cleanup;
}
if (VIR_ALLOC_N(params, nparams) < 0) {
virNetServerClientGetPrivateData(client);
if (!priv->conn) {
- virNetError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
+ virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
goto cleanup;
}
flags = args->flags;
if (size > REMOTE_DOMAIN_MEMORY_PEEK_BUFFER_MAX) {
- virNetError(VIR_ERR_INTERNAL_ERROR,
- "%s", _("size > maximum buffer size"));
+ virReportError(VIR_ERR_INTERNAL_ERROR,
+ "%s", _("size > maximum buffer size"));
goto cleanup;
}
virNetServerClientGetPrivateData(client);
if (!priv->conn) {
- virNetError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
+ virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
goto cleanup;
}
virNetServerClientGetPrivateData(client);
if (!priv->conn) {
- virNetError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
+ virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
goto cleanup;
}
virNetServerClientGetPrivateData(client);
if (!priv->conn) {
- virNetError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
+ virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
goto cleanup;
}
goto cleanup;
if (args->ncpumaps > REMOTE_VCPUINFO_MAX) {
- virNetError(VIR_ERR_INTERNAL_ERROR, "%s", _("ncpumaps > REMOTE_VCPUINFO_MAX"));
+ virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("ncpumaps > REMOTE_VCPUINFO_MAX"));
goto cleanup;
}
if (INT_MULTIPLY_OVERFLOW(args->ncpumaps, args->maplen) ||
args->ncpumaps * args->maplen > REMOTE_CPUMAPS_MAX) {
- virNetError(VIR_ERR_INTERNAL_ERROR, "%s", _("maxinfo * maplen > REMOTE_CPUMAPS_MAX"));
+ virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("maxinfo * maplen > REMOTE_CPUMAPS_MAX"));
goto cleanup;
}
virNetServerClientGetPrivateData(client);
if (!priv->conn) {
- virNetError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
+ virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
goto cleanup;
}
goto cleanup;
if (args->maxinfo > REMOTE_VCPUINFO_MAX) {
- virNetError(VIR_ERR_INTERNAL_ERROR, "%s", _("maxinfo > REMOTE_VCPUINFO_MAX"));
+ virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("maxinfo > REMOTE_VCPUINFO_MAX"));
goto cleanup;
}
if (INT_MULTIPLY_OVERFLOW(args->maxinfo, args->maplen) ||
args->maxinfo * args->maplen > REMOTE_CPUMAPS_MAX) {
- virNetError(VIR_ERR_INTERNAL_ERROR, "%s", _("maxinfo * maplen > REMOTE_CPUMAPS_MAX"));
+ virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("maxinfo * maplen > REMOTE_CPUMAPS_MAX"));
goto cleanup;
}
virNetServerClientGetPrivateData(client);
if (!priv->conn) {
- virNetError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
+ virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
goto cleanup;
}
virNetServerClientGetPrivateData(client);
if (!priv->conn) {
- virNetError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
+ virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
goto cleanup;
}
virNetServerClientGetPrivateData(client);
if (!priv->conn) {
- virNetError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
+ virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
goto cleanup;
}
flags = args->flags;
if (nparams > REMOTE_DOMAIN_MEMORY_PARAMETERS_MAX) {
- virNetError(VIR_ERR_INTERNAL_ERROR, "%s", _("nparams too large"));
+ virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("nparams too large"));
goto cleanup;
}
if (VIR_ALLOC_N(params, nparams) < 0) {
virNetServerClientGetPrivateData(client);
if (!priv->conn) {
- virNetError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
+ virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
goto cleanup;
}
flags = args->flags;
if (nparams > REMOTE_DOMAIN_NUMA_PARAMETERS_MAX) {
- virNetError(VIR_ERR_INTERNAL_ERROR, "%s", _("nparams too large"));
+ virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("nparams too large"));
goto cleanup;
}
if (VIR_ALLOC_N(params, nparams) < 0) {
virNetServerClientGetPrivateData(client);
if (!priv->conn) {
- virNetError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
+ virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
goto cleanup;
}
flags = args->flags;
if (nparams > REMOTE_DOMAIN_BLKIO_PARAMETERS_MAX) {
- virNetError(VIR_ERR_INTERNAL_ERROR, "%s", _("nparams too large"));
+ virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("nparams too large"));
goto cleanup;
}
if (VIR_ALLOC_N(params, nparams) < 0) {
virNetServerClientGetPrivateData(client);
if (!priv->conn) {
- virNetError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
+ virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
goto cleanup;
}
flags = args->flags;
if (nparams > REMOTE_NODE_CPU_STATS_MAX) {
- virNetError(VIR_ERR_INTERNAL_ERROR, "%s", _("nparams too large"));
+ virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("nparams too large"));
goto cleanup;
}
if (VIR_ALLOC_N(params, nparams) < 0) {
virNetServerClientGetPrivateData(client);
if (!priv->conn) {
- virNetError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
+ virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
goto cleanup;
}
flags = args->flags;
if (nparams > REMOTE_NODE_MEMORY_STATS_MAX) {
- virNetError(VIR_ERR_INTERNAL_ERROR, "%s", _("nparams too large"));
+ virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("nparams too large"));
goto cleanup;
}
if (VIR_ALLOC_N(params, nparams) < 0) {
virNetServerClientGetPrivateData(client);
if (!priv->conn) {
- virNetError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
+ virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
goto cleanup;
}
virNetServerClientGetPrivateData(client);
if (!priv->conn) {
- virNetError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
+ virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
goto cleanup;
}
if (nparams > REMOTE_DOMAIN_BLOCK_IO_TUNE_PARAMETERS_MAX) {
- virNetError(VIR_ERR_INTERNAL_ERROR, "%s", _("nparams too large"));
+ virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("nparams too large"));
goto cleanup;
}
authfail:
virResetLastError();
- virNetError(VIR_ERR_AUTH_FAILED, "%s",
- _("authentication failed"));
+ virReportError(VIR_ERR_AUTH_FAILED, "%s",
+ _("authentication failed"));
virNetMessageSaveError(rerr);
PROBE(RPC_SERVER_CLIENT_AUTH_FAIL,
"client=%p auth=%d",
virNetSASLSessionFree(priv->sasl);
priv->sasl = NULL;
virResetLastError();
- virNetError(VIR_ERR_AUTH_FAILED, "%s",
- _("authentication failed"));
+ virReportError(VIR_ERR_AUTH_FAILED, "%s",
+ _("authentication failed"));
if (rv < 0)
virNetMessageSaveError(rerr);
virMutexUnlock(&priv->lock);
virNetSASLSessionFree(priv->sasl);
priv->sasl = NULL;
virResetLastError();
- virNetError(VIR_ERR_AUTH_FAILED, "%s",
- _("authentication failed"));
+ virReportError(VIR_ERR_AUTH_FAILED, "%s",
+ _("authentication failed"));
if (rv < 0)
virNetMessageSaveError(rerr);
virMutexUnlock(&priv->lock);
remote_auth_sasl_init_ret *ret ATTRIBUTE_UNUSED)
{
VIR_WARN("Client tried unsupported SASL auth");
- virNetError(VIR_ERR_AUTH_FAILED, "%s",
- _("authentication failed"));
+ virReportError(VIR_ERR_AUTH_FAILED, "%s",
+ _("authentication failed"));
virNetMessageSaveError(rerr);
return -1;
}
remote_auth_sasl_start_ret *ret ATTRIBUTE_UNUSED)
{
VIR_WARN("Client tried unsupported SASL auth");
- virNetError(VIR_ERR_AUTH_FAILED, "%s",
- _("authentication failed"));
+ virReportError(VIR_ERR_AUTH_FAILED, "%s",
+ _("authentication failed"));
virNetMessageSaveError(rerr);
return -1;
}
remote_auth_sasl_step_ret *ret ATTRIBUTE_UNUSED)
{
VIR_WARN("Client tried unsupported SASL auth");
- virNetError(VIR_ERR_AUTH_FAILED, "%s",
- _("authentication failed"));
+ virReportError(VIR_ERR_AUTH_FAILED, "%s",
+ _("authentication failed"));
virNetMessageSaveError(rerr);
return -1;
}
virResetLastError();
if (authdismissed) {
- virNetError(VIR_ERR_AUTH_CANCELLED, "%s",
- _("authentication cancelled by user"));
+ virReportError(VIR_ERR_AUTH_CANCELLED, "%s",
+ _("authentication cancelled by user"));
} else {
- virNetError(VIR_ERR_AUTH_FAILED, "%s",
- pkout && *pkout ? pkout : _("authentication failed"));
+ virReportError(VIR_ERR_AUTH_FAILED, "%s",
+ pkout && *pkout ? pkout : _("authentication failed"));
}
VIR_FREE(pkout);
error:
VIR_FREE(ident);
virResetLastError();
- virNetError(VIR_ERR_AUTH_FAILED, "%s",
- _("authentication failed"));
+ virReportError(VIR_ERR_AUTH_FAILED, "%s",
+ _("authentication failed"));
virNetMessageSaveError(rerr);
virMutexUnlock(&priv->lock);
return -1;
remote_auth_polkit_ret *ret ATTRIBUTE_UNUSED)
{
VIR_ERROR(_("client tried unsupported PolicyKit init request"));
- virNetError(VIR_ERR_AUTH_FAILED, "%s",
- _("authentication failed"));
+ virReportError(VIR_ERR_AUTH_FAILED, "%s",
+ _("authentication failed"));
virNetMessageSaveError(rerr);
return -1;
}
virNetServerClientGetPrivateData(client);
if (!priv->conn) {
- virNetError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
+ virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
goto cleanup;
}
virNetServerClientGetPrivateData(client);
if (!priv->conn) {
- virNetError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
+ virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
goto cleanup;
}
virMutexLock(&priv->lock);
if (priv->domainEventCallbackID[VIR_DOMAIN_EVENT_ID_LIFECYCLE] != -1) {
- virNetError(VIR_ERR_INTERNAL_ERROR, _("domain event %d already registered"), VIR_DOMAIN_EVENT_ID_LIFECYCLE);
+ virReportError(VIR_ERR_INTERNAL_ERROR, _("domain event %d already registered"), VIR_DOMAIN_EVENT_ID_LIFECYCLE);
goto cleanup;
}
virNetServerClientGetPrivateData(client);
if (!priv->conn) {
- virNetError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
+ virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
goto cleanup;
}
virMutexLock(&priv->lock);
if (priv->domainEventCallbackID[VIR_DOMAIN_EVENT_ID_LIFECYCLE] < 0) {
- virNetError(VIR_ERR_INTERNAL_ERROR, _("domain event %d not registered"), VIR_DOMAIN_EVENT_ID_LIFECYCLE);
+ virReportError(VIR_ERR_INTERNAL_ERROR, _("domain event %d not registered"), VIR_DOMAIN_EVENT_ID_LIFECYCLE);
goto cleanup;
}
virNetServerClientGetPrivateData(client);
if (!priv->conn) {
- virNetError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
+ virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
goto cleanup;
}
virNetServerClientGetPrivateData(client);
if (!priv->conn) {
- virNetError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
+ virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
goto cleanup;
}
virNetServerClientGetPrivateData(client);
if (!priv->conn) {
- virNetError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
+ virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
goto cleanup;
}
if (args->eventID >= VIR_DOMAIN_EVENT_ID_LAST ||
args->eventID < 0) {
- virNetError(VIR_ERR_INTERNAL_ERROR, _("unsupported event ID %d"), args->eventID);
+ virReportError(VIR_ERR_INTERNAL_ERROR, _("unsupported event ID %d"), args->eventID);
goto cleanup;
}
if (priv->domainEventCallbackID[args->eventID] != -1) {
- virNetError(VIR_ERR_INTERNAL_ERROR, _("domain event %d already registered"), args->eventID);
+ virReportError(VIR_ERR_INTERNAL_ERROR, _("domain event %d already registered"), args->eventID);
goto cleanup;
}
virNetServerClientGetPrivateData(client);
if (!priv->conn) {
- virNetError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
+ virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
goto cleanup;
}
if (args->eventID >= VIR_DOMAIN_EVENT_ID_LAST ||
args->eventID < 0) {
- virNetError(VIR_ERR_INTERNAL_ERROR, _("unsupported event ID %d"), args->eventID);
+ virReportError(VIR_ERR_INTERNAL_ERROR, _("unsupported event ID %d"), args->eventID);
goto cleanup;
}
callbackID = priv->domainEventCallbackID[args->eventID];
if (callbackID < 0) {
- virNetError(VIR_ERR_INTERNAL_ERROR, _("domain event %d not registered"), args->eventID);
+ virReportError(VIR_ERR_INTERNAL_ERROR, _("domain event %d not registered"), args->eventID);
goto cleanup;
}
virNetServerClientGetPrivateData(client);
if (!priv->conn) {
- virNetError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
+ virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
goto cleanup;
}
virNetServerClientGetPrivateData(client);
if (!priv->conn) {
- virNetError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
+ virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
goto cleanup;
}
virNetServerClientGetPrivateData(client);
if (!priv->conn) {
- virNetError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
+ virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
goto cleanup;
}
virNetServerClientGetPrivateData(client);
if (!priv->conn) {
- virNetError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
+ virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
goto cleanup;
}
virNetServerClientGetPrivateData(client);
if (!priv->conn) {
- virNetError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
+ virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
goto cleanup;
}
virNetServerClientGetPrivateData(client);
if (!priv->conn) {
- virNetError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
+ virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
goto cleanup;
}
}
if (!priv->conn) {
- virNetError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
+ virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
goto cleanup;
}
virNetServerClientGetPrivateData(client);
if (!priv->conn) {
- virNetError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
+ virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
goto cleanup;
}
virNetServerClientGetPrivateData(client);
if (!priv->conn) {
- virNetError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
+ virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
goto cleanup;
}
flags = args->flags;
if (nparams > REMOTE_DOMAIN_INTERFACE_PARAMETERS_MAX) {
- virNetError(VIR_ERR_INTERNAL_ERROR, "%s", _("nparams too large"));
+ virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("nparams too large"));
goto cleanup;
}
if (VIR_ALLOC_N(params, nparams) < 0) {
priv = virNetServerClientGetPrivateData(client);
if (!priv->conn) {
- virNetError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
+ virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
goto cleanup;
}
if (args->nparams > REMOTE_NODE_CPU_STATS_MAX) {
- virNetError(VIR_ERR_INTERNAL_ERROR, "%s", _("nparams too large"));
+ virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("nparams too large"));
goto cleanup;
}
if (args->ncpus > REMOTE_DOMAIN_GET_CPU_STATS_NCPUS_MAX) {
- virNetError(VIR_ERR_INTERNAL_ERROR, "%s", _("ncpus too large"));
+ virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("ncpus too large"));
goto cleanup;
}
virNetServerClientGetPrivateData(client);
if (!priv->conn) {
- virNetError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
+ virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
goto cleanup;
}
goto cleanup;
if (args->maxerrors > REMOTE_DOMAIN_DISK_ERRORS_MAX) {
- virNetError(VIR_ERR_INTERNAL_ERROR, "%s",
- _("maxerrors too large"));
+ virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
+ _("maxerrors too large"));
goto cleanup;
}
virDomainPtr dom = NULL;
if (!priv->conn) {
- virNetError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
+ virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
goto cleanup;
}
virDomainSnapshotPtr snapshot = NULL;
if (!priv->conn) {
- virNetError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
+ virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
goto cleanup;
}