提交 78d4c184 编写于 作者: H Hao Liu 提交者: Pavel Hrdina

virsh: Fix types for option bandwidth in block*

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: NHao Liu <hliu@redhat.com>
上级 8d935fec
...@@ -1616,7 +1616,7 @@ static const vshCmdOptDef opts_block_commit[] = { ...@@ -1616,7 +1616,7 @@ static const vshCmdOptDef opts_block_commit[] = {
.help = N_("fully-qualified path of disk") .help = N_("fully-qualified path of disk")
}, },
{.name = "bandwidth", {.name = "bandwidth",
.type = VSH_OT_DATA, .type = VSH_OT_INT,
.help = N_("bandwidth limit in MiB/s") .help = N_("bandwidth limit in MiB/s")
}, },
{.name = "base", {.name = "base",
...@@ -1834,7 +1834,7 @@ static const vshCmdOptDef opts_block_copy[] = { ...@@ -1834,7 +1834,7 @@ static const vshCmdOptDef opts_block_copy[] = {
.help = N_("path of the copy to create") .help = N_("path of the copy to create")
}, },
{.name = "bandwidth", {.name = "bandwidth",
.type = VSH_OT_DATA, .type = VSH_OT_INT,
.help = N_("bandwidth limit in MiB/s") .help = N_("bandwidth limit in MiB/s")
}, },
{.name = "shallow", {.name = "shallow",
...@@ -2190,8 +2190,8 @@ static const vshCmdOptDef opts_block_job[] = { ...@@ -2190,8 +2190,8 @@ static const vshCmdOptDef opts_block_job[] = {
.help = N_("implies --info; output details rather than human summary") .help = N_("implies --info; output details rather than human summary")
}, },
{.name = "bandwidth", {.name = "bandwidth",
.type = VSH_OT_DATA, .type = VSH_OT_INT,
.help = N_("set the Bandwidth limit in MiB/s") .help = N_("set the bandwidth limit in MiB/s")
}, },
{.name = NULL} {.name = NULL}
}; };
...@@ -2349,7 +2349,7 @@ static const vshCmdOptDef opts_block_pull[] = { ...@@ -2349,7 +2349,7 @@ static const vshCmdOptDef opts_block_pull[] = {
.help = N_("fully-qualified path of disk") .help = N_("fully-qualified path of disk")
}, },
{.name = "bandwidth", {.name = "bandwidth",
.type = VSH_OT_DATA, .type = VSH_OT_INT,
.help = N_("bandwidth limit in MiB/s") .help = N_("bandwidth limit in MiB/s")
}, },
{.name = "base", {.name = "base",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册