block rebase: wire up remote protocol

Nice and simple.

* src/remote/remote_protocol.x (REMOTE_PROC_DOMAIN_BLOCK_REBASE):
New RPC.
* src/remote/remote_driver.c (remote_driver): Wire it up.
* src/remote_protocol-structs: Regenerate.
This commit is contained in:
Eric Blake 2012-01-31 21:39:18 -07:00
parent 99fd69c3de
commit 8ee8fd6555
3 changed files with 18 additions and 1 deletions

View File

@ -4908,6 +4908,7 @@ static virDriver remote_driver = {
.domainGetBlockJobInfo = remoteDomainGetBlockJobInfo, /* 0.9.4 */
.domainBlockJobSetSpeed = remoteDomainBlockJobSetSpeed, /* 0.9.4 */
.domainBlockPull = remoteDomainBlockPull, /* 0.9.4 */
.domainBlockRebase = remoteDomainBlockRebase, /* 0.9.10 */
.setKeepAlive = remoteSetKeepAlive, /* 0.9.8 */
.isAlive = remoteIsAlive, /* 0.9.8 */
.nodeSuspendForDuration = remoteNodeSuspendForDuration, /* 0.9.8 */

View File

@ -1176,6 +1176,13 @@ struct remote_domain_block_pull_args {
unsigned hyper bandwidth;
unsigned int flags;
};
struct remote_domain_block_rebase_args {
remote_nonnull_domain dom;
remote_nonnull_string path;
remote_string base;
unsigned hyper bandwidth;
unsigned int flags;
};
struct remote_domain_set_block_io_tune_args {
remote_nonnull_domain dom;
@ -2751,7 +2758,8 @@ enum remote_procedure {
REMOTE_PROC_DOMAIN_GET_CPU_STATS = 262, /* skipgen skipgen */
REMOTE_PROC_DOMAIN_GET_DISK_ERRORS = 263, /* skipgen skipgen */
REMOTE_PROC_DOMAIN_SET_METADATA = 264, /* autogen autogen */
REMOTE_PROC_DOMAIN_GET_METADATA = 265 /* autogen autogen */
REMOTE_PROC_DOMAIN_GET_METADATA = 265, /* autogen autogen */
REMOTE_PROC_DOMAIN_BLOCK_REBASE = 266 /* autogen autogen */
/*
* Notice how the entries are grouped in sets of 10 ?

View File

@ -834,6 +834,13 @@ struct remote_domain_block_pull_args {
uint64_t bandwidth;
u_int flags;
};
struct remote_domain_block_rebase_args {
remote_nonnull_domain dom;
remote_nonnull_string path;
remote_string base;
uint64_t bandwidth;
u_int flags;
};
struct remote_domain_set_block_io_tune_args {
remote_nonnull_domain dom;
remote_nonnull_string disk;
@ -2165,4 +2172,5 @@ enum remote_procedure {
REMOTE_PROC_DOMAIN_GET_DISK_ERRORS = 263,
REMOTE_PROC_DOMAIN_SET_METADATA = 264,
REMOTE_PROC_DOMAIN_GET_METADATA = 265,
REMOTE_PROC_DOMAIN_BLOCK_REBASE = 266,
};