From: Radoslaw Smigielski <[email protected]>

The '--dest' option of 'blockcopy' command specifies the path of the
copy to create.

Partially-fixes: https://gitlab.com/libvirt/libvirt/-/work_items/9
Signed-off-by: Radoslaw Smigielski <[email protected]>
---
 tools/virsh-domain.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c
index f466976931c6..e6f2ca3a449a 100644
--- a/tools/virsh-domain.c
+++ b/tools/virsh-domain.c
@@ -2629,6 +2629,7 @@ static const vshCmdOptDef opts_blockcopy[] = {
     {.name = "dest",
      .type = VSH_OT_STRING,
      .unwanted_positional = true,
+     .completer = vshCompletePathLocalExisting,
      .help = N_("path of the copy to create")
     },
     {.name = "bandwidth",
-- 
2.54.0

Reply via email to