]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virsh: domblkinfo: options --all and --device are mutually exclusive
authorLin Ma <morecache@gmail.com>
Fri, 11 Sep 2020 07:06:14 +0000 (15:06 +0800)
committerJán Tomko <jtomko@redhat.com>
Sat, 12 Sep 2020 10:49:31 +0000 (12:49 +0200)
Signed-off-by: Lin Ma <lma@suse.de>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Ján Tomko <jtomko@redhat.com>
tools/virsh-domain-monitor.c

index 4c0da3c695d2358396772b467df421b45cc3c124..848efc8aa3b709fc256511da2f65b8e869282186 100644 (file)
@@ -469,6 +469,8 @@ cmdDomblkinfo(vshControl *ctl, const vshCmd *cmd)
     char *phy = NULL;
     vshTablePtr table = NULL;
 
+    VSH_EXCLUSIVE_OPTIONS("all", "device");
+
     if (!(dom = virshCommandOptDomain(ctl, cmd, NULL)))
         return false;