[libvirt] [PATCH] tools: virsh: Add some example values to attach-disk --help

Cole Robinson crobinso at redhat.com
Sun Apr 10 02:18:07 UTC 2016


https://bugzilla.redhat.com/show_bug.cgi?id=982630
---
 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 36d0353..46598bb 100644
--- a/tools/virsh-domain.c
+++ b/tools/virsh-domain.c
@@ -322,11 +322,11 @@ static const vshCmdOptDef opts_attach_disk[] = {
     },
     {.name = "driver",
      .type = VSH_OT_STRING,
-     .help = N_("driver of disk device")
+     .help = N_("driver of disk device (qemu|...)")
     },
     {.name = "subdriver",
      .type = VSH_OT_STRING,
-     .help = N_("subdriver of disk device")
+     .help = N_("subdriver of disk device (raw|qcow2|vmdk|...)")
     },
     {.name = "iothread",
      .type = VSH_OT_STRING,
@@ -338,7 +338,7 @@ static const vshCmdOptDef opts_attach_disk[] = {
     },
     {.name = "type",
      .type = VSH_OT_STRING,
-     .help = N_("target device type")
+     .help = N_("target device type (disk|cdrom|floppy|...)")
     },
     {.name = "shareable",
      .type = VSH_OT_ALIAS,
@@ -346,11 +346,11 @@ static const vshCmdOptDef opts_attach_disk[] = {
     },
     {.name = "mode",
      .type = VSH_OT_STRING,
-     .help = N_("mode of device reading and writing")
+     .help = N_("mode of device reading and writing (readonly|shareable)")
     },
     {.name = "sourcetype",
      .type = VSH_OT_STRING,
-     .help = N_("type of source (block|file)")
+     .help = N_("type of source (block|file|...)")
     },
     {.name = "serial",
      .type = VSH_OT_STRING,
-- 
2.7.3




More information about the libvir-list mailing list