[libvirt] [PATCH 2/2]virsh: set --shareable and --mode's new member: exclude_option

Chen Hanxiao chenhanxiao at cn.fujitsu.com
Fri Oct 25 03:46:20 UTC 2013


From: Chen Hanxiao <chenhanxiao at cn.fujitsu.com>

Signed-off-by: Chen Hanxiao <chenhanxiao at cn.fujitsu.com>
---
 tools/virsh-domain.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c
index 59e3d8d..cb2678b 100644
--- a/tools/virsh-domain.c
+++ b/tools/virsh-domain.c
@@ -297,11 +297,13 @@ static const vshCmdOptDef opts_attach_disk[] = {
     },
     {.name = "shareable",
      .type = VSH_OT_ALIAS,
-     .help = "mode=shareable"
+     .help = "mode=shareable",
+     .exclude_option = "--mode"
     },
     {.name = "mode",
      .type = VSH_OT_STRING,
-     .help = N_("mode of device reading and writing")
+     .help = N_("mode of device reading and writing"),
+     .exclude_option = "--shareable"
     },
     {.name = "sourcetype",
      .type = VSH_OT_STRING,
-- 
1.8.2.1




More information about the libvir-list mailing list