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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Chen Hanxiao <chenhanxiao@xxxxxxxxxxxxxx>

Signed-off-by: Chen Hanxiao <chenhanxiao@xxxxxxxxxxxxxx>
---
 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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]