提交 8ee8fd65 编写于 作者: E Eric Blake

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.
上级 99fd69c3
...@@ -4908,6 +4908,7 @@ static virDriver remote_driver = { ...@@ -4908,6 +4908,7 @@ static virDriver remote_driver = {
.domainGetBlockJobInfo = remoteDomainGetBlockJobInfo, /* 0.9.4 */ .domainGetBlockJobInfo = remoteDomainGetBlockJobInfo, /* 0.9.4 */
.domainBlockJobSetSpeed = remoteDomainBlockJobSetSpeed, /* 0.9.4 */ .domainBlockJobSetSpeed = remoteDomainBlockJobSetSpeed, /* 0.9.4 */
.domainBlockPull = remoteDomainBlockPull, /* 0.9.4 */ .domainBlockPull = remoteDomainBlockPull, /* 0.9.4 */
.domainBlockRebase = remoteDomainBlockRebase, /* 0.9.10 */
.setKeepAlive = remoteSetKeepAlive, /* 0.9.8 */ .setKeepAlive = remoteSetKeepAlive, /* 0.9.8 */
.isAlive = remoteIsAlive, /* 0.9.8 */ .isAlive = remoteIsAlive, /* 0.9.8 */
.nodeSuspendForDuration = remoteNodeSuspendForDuration, /* 0.9.8 */ .nodeSuspendForDuration = remoteNodeSuspendForDuration, /* 0.9.8 */
......
...@@ -1176,6 +1176,13 @@ struct remote_domain_block_pull_args { ...@@ -1176,6 +1176,13 @@ struct remote_domain_block_pull_args {
unsigned hyper bandwidth; unsigned hyper bandwidth;
unsigned int flags; 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 { struct remote_domain_set_block_io_tune_args {
remote_nonnull_domain dom; remote_nonnull_domain dom;
...@@ -2751,7 +2758,8 @@ enum remote_procedure { ...@@ -2751,7 +2758,8 @@ enum remote_procedure {
REMOTE_PROC_DOMAIN_GET_CPU_STATS = 262, /* skipgen skipgen */ REMOTE_PROC_DOMAIN_GET_CPU_STATS = 262, /* skipgen skipgen */
REMOTE_PROC_DOMAIN_GET_DISK_ERRORS = 263, /* skipgen skipgen */ REMOTE_PROC_DOMAIN_GET_DISK_ERRORS = 263, /* skipgen skipgen */
REMOTE_PROC_DOMAIN_SET_METADATA = 264, /* autogen autogen */ 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 ? * Notice how the entries are grouped in sets of 10 ?
......
...@@ -834,6 +834,13 @@ struct remote_domain_block_pull_args { ...@@ -834,6 +834,13 @@ struct remote_domain_block_pull_args {
uint64_t bandwidth; uint64_t bandwidth;
u_int flags; 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 { struct remote_domain_set_block_io_tune_args {
remote_nonnull_domain dom; remote_nonnull_domain dom;
remote_nonnull_string disk; remote_nonnull_string disk;
...@@ -2165,4 +2172,5 @@ enum remote_procedure { ...@@ -2165,4 +2172,5 @@ enum remote_procedure {
REMOTE_PROC_DOMAIN_GET_DISK_ERRORS = 263, REMOTE_PROC_DOMAIN_GET_DISK_ERRORS = 263,
REMOTE_PROC_DOMAIN_SET_METADATA = 264, REMOTE_PROC_DOMAIN_SET_METADATA = 264,
REMOTE_PROC_DOMAIN_GET_METADATA = 265, REMOTE_PROC_DOMAIN_GET_METADATA = 265,
REMOTE_PROC_DOMAIN_BLOCK_REBASE = 266,
}; };
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册