From 7c80d074143494b35738c0bdad782618492e889c Mon Sep 17 00:00:00 2001 From: Osier Yang Date: Tue, 29 Nov 2011 21:44:36 +0800 Subject: [PATCH] block_resize: Wire up the remote protocol --- src/remote/remote_driver.c | 1 + src/remote/remote_protocol.x | 11 ++++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/remote/remote_driver.c b/src/remote/remote_driver.c index ac3e7a54a4..e5880fa4dc 100644 --- a/src/remote/remote_driver.c +++ b/src/remote/remote_driver.c @@ -4552,6 +4552,7 @@ static virDriver remote_driver = { .domainMigratePrepare = remoteDomainMigratePrepare, /* 0.3.2 */ .domainMigratePerform = remoteDomainMigratePerform, /* 0.3.2 */ .domainMigrateFinish = remoteDomainMigrateFinish, /* 0.3.2 */ + .domainBlockResize = remoteDomainBlockResize, /* 0.9.8 */ .domainBlockStats = remoteDomainBlockStats, /* 0.3.2 */ .domainBlockStatsFlags = remoteDomainBlockStatsFlags, /* 0.9.5 */ .domainInterfaceStats = remoteDomainInterfaceStats, /* 0.3.2 */ diff --git a/src/remote/remote_protocol.x b/src/remote/remote_protocol.x index 7d4adfc1d2..ffcf98e132 100644 --- a/src/remote/remote_protocol.x +++ b/src/remote/remote_protocol.x @@ -537,6 +537,13 @@ struct remote_domain_get_memory_parameters_ret { int nparams; }; +struct remote_domain_block_resize_args { + remote_nonnull_domain dom; + remote_nonnull_string disk; + unsigned hyper size; + unsigned int flags; +}; + struct remote_domain_block_stats_args { remote_nonnull_domain dom; remote_nonnull_string path; @@ -2572,7 +2579,9 @@ enum remote_procedure { REMOTE_PROC_DOMAIN_SNAPSHOT_LIST_CHILDREN_NAMES = 247, /* autogen autogen priority:high */ REMOTE_PROC_DOMAIN_EVENT_DISK_CHANGE = 248, /* skipgen skipgen */ REMOTE_PROC_DOMAIN_OPEN_GRAPHICS = 249, /* skipgen skipgen */ - REMOTE_PROC_NODE_SUSPEND_FOR_DURATION = 250 /* autogen autogen */ + REMOTE_PROC_NODE_SUSPEND_FOR_DURATION = 250, /* autogen autogen */ + + REMOTE_PROC_DOMAIN_BLOCK_RESIZE = 251 /* autogen autogen */ /* * Notice how the entries are grouped in sets of 10 ?