virsh: Add target name completion for block device options

Signed-off-by: Lin Ma <lma@suse.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Lin Ma
2018-05-15 19:18:24 +08:00
committed by Michal Privoznik
parent 14dd3b63e9
commit 27e97d5c17
2 changed files with 10 additions and 0 deletions

View File

@@ -391,6 +391,7 @@ static const vshCmdOptDef opts_domblkinfo[] = {
{.name = "device",
.type = VSH_OT_DATA,
.flags = VSH_OFLAG_REQ,
.completer = virshDomainDiskTargetCompleter,
.help = N_("block device")
},
{.name = "human",
@@ -807,6 +808,7 @@ static const vshCmdOptDef opts_domblkstat[] = {
{.name = "device",
.type = VSH_OT_STRING,
.flags = VSH_OFLAG_EMPTY_OK,
.completer = virshDomainDiskTargetCompleter,
.help = N_("block device")
},
{.name = "human",