diff --git a/daemon/remote.c b/daemon/remote.c index 1914b25f8185a278e131197f38dc826c4109aae8..8e0f47d80ccd6dbfaaf7dce067de4a6666a3813b 100644 --- a/daemon/remote.c +++ b/daemon/remote.c @@ -1737,42 +1737,6 @@ cleanup: return rv; } -static int -remoteDispatchDomainGetBlockPullInfo(struct qemud_server *server ATTRIBUTE_UNUSED, - struct qemud_client *client ATTRIBUTE_UNUSED, - virConnectPtr conn, - remote_message_header *hdr ATTRIBUTE_UNUSED, - remote_error * rerr, - remote_domain_get_block_pull_info_args *args, - remote_domain_get_block_pull_info_ret *ret) -{ - virDomainPtr dom = NULL; - virDomainBlockPullInfo tmp; - int rv = -1; - - if (!conn) { - virNetError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open")); - goto cleanup; - } - - if (!(dom = get_nonnull_domain(conn, args->dom))) - goto cleanup; - - if (virDomainGetBlockPullInfo(dom, args->path, &tmp, args->flags) < 0) - goto cleanup; - ret->cur = tmp.cur; - ret->end = tmp.end; - rv = 0; - -cleanup: - if (rv < 0) - remoteDispatchError(rerr); - if (dom) - virDomainFree(dom); - return rv; -} - - /*-------------------------------------------------------------*/ static int diff --git a/src/remote/remote_driver.c b/src/remote/remote_driver.c index 7032bcf353f31f86fa256fa6cb05c14183bbba83..13f8820c1d1defbc1b3ff6a57dd7dc397cedd1a0 100644 --- a/src/remote/remote_driver.c +++ b/src/remote/remote_driver.c @@ -2671,38 +2671,6 @@ done: return rv; } -static int remoteDomainGetBlockPullInfo(virDomainPtr domain, - const char *path, - virDomainBlockPullInfoPtr info, - unsigned int flags) -{ - int rv = -1; - remote_domain_get_block_pull_info_args args; - remote_domain_get_block_pull_info_ret ret; - struct private_data *priv = domain->conn->privateData; - - remoteDriverLock(priv); - - make_nonnull_domain(&args.dom, domain); - args.path = (char *)path; - args.flags = flags; - - if (call(domain->conn, priv, 0, REMOTE_PROC_DOMAIN_GET_BLOCK_PULL_INFO, - (xdrproc_t)xdr_remote_domain_get_block_pull_info_args, - (char *)&args, - (xdrproc_t)xdr_remote_domain_get_block_pull_info_ret, - (char *)&ret) == -1) - goto done; - - info->cur = ret.cur; - info->end = ret.end; - rv = 0; - -done: - remoteDriverUnlock(priv); - return rv; -} - /*----------------------------------------------------------------------*/ static virDrvOpenStatus ATTRIBUTE_NONNULL (1) diff --git a/src/remote/remote_protocol.x b/src/remote/remote_protocol.x index ca0d450a2bfd90dd7d71452d6f8b728a6aa88e82..d9720d1276d7f5ac85942e504eae5bb963bb6702 100644 --- a/src/remote/remote_protocol.x +++ b/src/remote/remote_protocol.x @@ -1003,7 +1003,7 @@ struct remote_domain_get_block_pull_info_args { unsigned int flags; }; -struct remote_domain_get_block_pull_info_ret { +struct remote_domain_get_block_pull_info_ret { /* insert@2 */ unsigned hyper cur; unsigned hyper end; }; @@ -2420,7 +2420,7 @@ enum remote_procedure { REMOTE_PROC_DOMAIN_BLOCK_PULL_ALL = 230, /* autogen autogen */ REMOTE_PROC_DOMAIN_BLOCK_PULL_ABORT = 231, /* autogen autogen */ - REMOTE_PROC_DOMAIN_GET_BLOCK_PULL_INFO = 232, /* skipgen skipgen */ + REMOTE_PROC_DOMAIN_GET_BLOCK_PULL_INFO = 232, /* autogen autogen */ REMOTE_PROC_DOMAIN_EVENT_BLOCK_PULL = 233, /* skipgen skipgen */ REMOTE_PROC_DOMAIN_GET_CONTROL_INFO = 234 /* autogen autogen */