From: Lin Ma Date: Tue, 15 May 2018 11:10:34 +0000 (+0800) Subject: virsh: Only return active domain names for block* command X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=a4bbd304006ad79cd2052218345f1accfb077f95;p=libvirt.git virsh: Only return active domain names for block* command Signed-off-by: Lin Ma --- diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c index 724871d648..bc44131fa2 100644 --- a/tools/virsh-domain.c +++ b/tools/virsh-domain.c @@ -1882,7 +1882,7 @@ static const vshCmdInfo info_blockcommit[] = { }; static const vshCmdOptDef opts_blockcommit[] = { - VIRSH_COMMON_OPT_DOMAIN_FULL(0), + VIRSH_COMMON_OPT_DOMAIN_FULL(VIR_CONNECT_LIST_DOMAINS_ACTIVE), {.name = "path", .type = VSH_OT_DATA, .flags = VSH_OFLAG_REQ, @@ -2107,7 +2107,7 @@ static const vshCmdInfo info_blockcopy[] = { }; static const vshCmdOptDef opts_blockcopy[] = { - VIRSH_COMMON_OPT_DOMAIN_FULL(0), + VIRSH_COMMON_OPT_DOMAIN_FULL(VIR_CONNECT_LIST_DOMAINS_ACTIVE), {.name = "path", .type = VSH_OT_DATA, .flags = VSH_OFLAG_REQ, @@ -2423,7 +2423,7 @@ static const vshCmdInfo info_blockjob[] = { }; static const vshCmdOptDef opts_blockjob[] = { - VIRSH_COMMON_OPT_DOMAIN_FULL(0), + VIRSH_COMMON_OPT_DOMAIN_FULL(VIR_CONNECT_LIST_DOMAINS_ACTIVE), {.name = "path", .type = VSH_OT_DATA, .flags = VSH_OFLAG_REQ, @@ -2666,7 +2666,7 @@ static const vshCmdInfo info_blockpull[] = { }; static const vshCmdOptDef opts_blockpull[] = { - VIRSH_COMMON_OPT_DOMAIN_FULL(0), + VIRSH_COMMON_OPT_DOMAIN_FULL(VIR_CONNECT_LIST_DOMAINS_ACTIVE), {.name = "path", .type = VSH_OT_DATA, .flags = VSH_OFLAG_REQ, @@ -2812,7 +2812,7 @@ static const vshCmdInfo info_blockresize[] = { }; static const vshCmdOptDef opts_blockresize[] = { - VIRSH_COMMON_OPT_DOMAIN_FULL(0), + VIRSH_COMMON_OPT_DOMAIN_FULL(VIR_CONNECT_LIST_DOMAINS_ACTIVE), {.name = "path", .type = VSH_OT_DATA, .flags = VSH_OFLAG_REQ,