From nobody Mon Feb 9 08:56:29 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) client-ip=63.128.21.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1599808065; cv=none; d=zohomail.com; s=zohoarc; b=ELNmsSxhl4jwd9kdJiBgMZb9B6xmZ48SXU6IAAOtSEOzjwHvSpOFVnHWgN843RAI4k8PXssntAJ64Tx86cy23S7NN70yZo4PfLeltFDe4Eo6dhZelliSAwxSu3mN7L+C8k7Sjte6Xqt7YUXBp+85H3iuqRSCXsYlXbt3FW1LvrI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1599808065; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=CnPAgehWs9SmVUpVSNtod96cAMXROkvc4EoaYFuz+/w=; b=n3nfIC7pS7LePp896aKjZAoK3fZiZbMYkqZPR+WguiqoGcY0F8pHW1upLa1L8vtXCO/bsIrhJcEtAqSJ7rKkQitRPWBbQZSV/dXVLn6wDXJ/VblbJiQzJvJlZfGK7nSQIciiPXl2Qw1SqCDoFf0VJeiRgukx+DzEC8vX0K9S2+w= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by mx.zohomail.com with SMTPS id 1599808065080505.39770985303596; Fri, 11 Sep 2020 00:07:45 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-412-0EUj2y4nNmOuspeVRsR8Eg-1; Fri, 11 Sep 2020 03:07:41 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 235AE1005E73; Fri, 11 Sep 2020 07:07:36 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id F18EA1A835; Fri, 11 Sep 2020 07:07:35 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id B3A6C180B656; Fri, 11 Sep 2020 07:07:35 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 08B76sSp006961 for ; Fri, 11 Sep 2020 03:06:54 -0400 Received: by smtp.corp.redhat.com (Postfix) id 1A05D2144B2F; Fri, 11 Sep 2020 07:06:54 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast05.extmail.prod.ext.rdu2.redhat.com [10.11.55.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 150502166B27 for ; Fri, 11 Sep 2020 07:06:54 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-1.mimecast.com [207.211.31.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id EEF3A848522 for ; Fri, 11 Sep 2020 07:06:53 +0000 (UTC) Received: from mail-pg1-f170.google.com (mail-pg1-f170.google.com [209.85.215.170]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-591-rO7pGpZ4PmiW8y-5nrsc5A-1; Fri, 11 Sep 2020 03:06:51 -0400 Received: by mail-pg1-f170.google.com with SMTP id f2so3957227pgd.3 for ; Fri, 11 Sep 2020 00:06:50 -0700 (PDT) Received: from t440p.suse.asia (60-251-47-115.HINET-IP.hinet.net. [60.251.47.115]) by smtp.gmail.com with ESMTPSA id a19sm1252037pfn.10.2020.09.11.00.06.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Sep 2020 00:06:49 -0700 (PDT) X-MC-Unique: 0EUj2y4nNmOuspeVRsR8Eg-1 X-MC-Unique: rO7pGpZ4PmiW8y-5nrsc5A-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=CnPAgehWs9SmVUpVSNtod96cAMXROkvc4EoaYFuz+/w=; b=tEz6oT7/K/0bIlQWZYR+xr70oGgAoJqa1a+p9c7hkyqU7OOs/LM9gLP97lgC+xFn1k 6JHSs3PT25BSMRxM0rgyJmbsN3Q3ecyMBdU6cgqwDzCOF6XuSJVnT0UmJBnUqrwEfGbf nVxQFfl7J96Af9U1Zw2AVfGFx+kKvlTf/H17CCJBW6+oOufLxkKipf+6GK2oP5DRZIpw kAunHWTEa9Pctp2+xw2MG738c3x+szC8azX7kDwcLVltWnXOqVw6s1/KZf+CicYPq3YT fvRN2rzVJLD71Ja/EyMjJSzU11Ncwtq4uZrFQz9syIs46p5Yw0iYCcu1+Z+cFuNgILAW hLcQ== X-Gm-Message-State: AOAM533lExYXwcGXF/v6s0FHl2rZq54mxmHHq2rhx8lsCngqM5qj35wG QftNWp+J/xFb0jnPoyxxaRFVS5iQkant/A== X-Google-Smtp-Source: ABdhPJyvzfiUiSj4DVwJ8qgZDlus/UbARrHiZeqm8cmcGKpKqpirHuwDSnzo/7owuNtZt79jZTWyeQ== X-Received: by 2002:a17:902:ac85:: with SMTP id h5mr687819plr.50.1599808009767; Fri, 11 Sep 2020 00:06:49 -0700 (PDT) From: Lin Ma X-Google-Original-From: Lin Ma To: libvir-list@redhat.com Subject: [libvirt] [PATCH 07/12] virsh: domblkinfo: options --all and --device are mutually exclusive Date: Fri, 11 Sep 2020 15:06:14 +0800 Message-Id: <20200911070619.12325-8-lma@suse.de> In-Reply-To: <20200911070619.12325-1-lma@suse.de> References: <20200911070619.12325-1-lma@suse.de> MIME-Version: 1.0 X-Mimecast-Impersonation-Protect: Policy=CLT - Impersonation Protection Definition; Similar Internal Domain=false; Similar Monitored External Domain=false; Custom External Domain=false; Mimecast External Domain=false; Newly Observed Domain=false; Internal User Name=false; Custom Display Name List=false; Reply-to Address Mismatch=false; Targeted Threat Dictionary=false; Mimecast Threat Dictionary=false; Custom Threat Dictionary=false; X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-loop: libvir-list@redhat.com Cc: Lin Ma X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0.002 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Signed-off-by: Lin Ma Reviewed-by: J=C3=A1n Tomko --- tools/virsh-domain-monitor.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/virsh-domain-monitor.c b/tools/virsh-domain-monitor.c index 0111116885..a813476936 100644 --- a/tools/virsh-domain-monitor.c +++ b/tools/virsh-domain-monitor.c @@ -469,6 +469,8 @@ cmdDomblkinfo(vshControl *ctl, const vshCmd *cmd) char *phy =3D NULL; vshTablePtr table =3D NULL; =20 + VSH_EXCLUSIVE_OPTIONS("all", "device"); + if (!(dom =3D virshCommandOptDomain(ctl, cmd, NULL))) return false; =20 --=20 2.26.0