Bandwidth options in blockcommit, blockcopy, blockjob and blockpull
are parsed by vshCommandOptULWrap() and should be shown as a number
type option.
And a typo is fixed.
Signed-off-by: Hao Liu <hliu(a)redhat.com>
---
tools/virsh-domain.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c
index dfc3a8c..bd5f404 100644
--- a/tools/virsh-domain.c
+++ b/tools/virsh-domain.c
@@ -1616,7 +1616,7 @@ static const vshCmdOptDef opts_block_commit[] = {
.help = N_("fully-qualified path of disk")
},
{.name = "bandwidth",
- .type = VSH_OT_DATA,
+ .type = VSH_OT_INT,
.help = N_("bandwidth limit in MiB/s")
},
{.name = "base",
@@ -1834,7 +1834,7 @@ static const vshCmdOptDef opts_block_copy[] = {
.help = N_("path of the copy to create")
},
{.name = "bandwidth",
- .type = VSH_OT_DATA,
+ .type = VSH_OT_INT,
.help = N_("bandwidth limit in MiB/s")
},
{.name = "shallow",
@@ -2190,8 +2190,8 @@ static const vshCmdOptDef opts_block_job[] = {
.help = N_("implies --info; output details rather than human summary")
},
{.name = "bandwidth",
- .type = VSH_OT_DATA,
- .help = N_("set the Bandwidth limit in MiB/s")
+ .type = VSH_OT_INT,
+ .help = N_("set the bandwidth limit in MiB/s")
},
{.name = NULL}
};
@@ -2349,7 +2349,7 @@ static const vshCmdOptDef opts_block_pull[] = {
.help = N_("fully-qualified path of disk")
},
{.name = "bandwidth",
- .type = VSH_OT_DATA,
+ .type = VSH_OT_INT,
.help = N_("bandwidth limit in MiB/s")
},
{.name = "base",
--
1.8.3.1
Show replies by date
On 11/06/2014 09:01 AM, Hao Liu wrote:
Bandwidth options in blockcommit, blockcopy, blockjob and blockpull
are parsed by vshCommandOptULWrap() and should be shown as a number
type option.
And a typo is fixed.
Signed-off-by: Hao Liu <hliu(a)redhat.com>
---
tools/virsh-domain.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
[..]
ACK and pushed now. Thanks for the patch.
Pavel