From nobody Mon Feb 9 14:14:41 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.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 216.205.24.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=1599808164; cv=none; d=zohomail.com; s=zohoarc; b=d+i2ng7L9PxVjYHwo3QjWW58q69K3FIGIbn8BlT7bR3QoWGEeuYyxDUlMlg8ARqKdhxn2mw2w1m0mIQux3wcUoAmyC3fJpV1NyU2v2D/ZOnRHv0WsN5AnlIR2U43iKVrBSisqAPpof3OQwHk2Nf1IXZVGLu45ZynCiaQdHZIC6M= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1599808164; 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=hhhDAimGLe83Z4ToUzw1WzPVw+P6WY+9wQbgLEe0Bhw=; b=emV2bIwmiaP68B4VkOTiig/xUSusjJ5lOHOSUeu2yrvcgKuCzuxaooId5iHV3e+6fFzgKx5irzH/hD50andBqFVBXvMmgh+ZSSP5wzJSwfvO+GkXWaSOKZRrWpfUsvsXkK515mJkC4qGbIEXZH8VlLkKQUvMQDAVcq+OaeNddWE= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.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 [216.205.24.124]) by mx.zohomail.com with SMTPS id 1599808164198407.9082587714771; Fri, 11 Sep 2020 00:09:24 -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-399-tlO_uLsDPGSP_Y5s8FFweQ-1; Fri, 11 Sep 2020 03:09:20 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 7512A81F00B; Fri, 11 Sep 2020 07:09:15 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 51FAA10013BD; Fri, 11 Sep 2020 07:09:15 +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 2145B92301; Fri, 11 Sep 2020 07:09:15 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 08B778Dk007041 for ; Fri, 11 Sep 2020 03:07:08 -0400 Received: by smtp.corp.redhat.com (Postfix) id 8C62111921AB; Fri, 11 Sep 2020 07:07:08 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast04.extmail.prod.ext.rdu2.redhat.com [10.11.55.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 8679B11921AA for ; Fri, 11 Sep 2020 07:07:06 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-2.mimecast.com [205.139.110.61]) (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 0B1A6101AA48 for ; Fri, 11 Sep 2020 07:07:06 +0000 (UTC) Received: from mail-pg1-f194.google.com (mail-pg1-f194.google.com [209.85.215.194]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-80-icZkA6oeOBerbAbJ4fn8tA-1; Fri, 11 Sep 2020 03:06:57 -0400 Received: by mail-pg1-f194.google.com with SMTP id u13so5997347pgh.1 for ; Fri, 11 Sep 2020 00:06:57 -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.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Sep 2020 00:06:55 -0700 (PDT) X-MC-Unique: tlO_uLsDPGSP_Y5s8FFweQ-1 X-MC-Unique: icZkA6oeOBerbAbJ4fn8tA-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=hhhDAimGLe83Z4ToUzw1WzPVw+P6WY+9wQbgLEe0Bhw=; b=NSZjZSUC7w141xJgOr7HAzgqbSoaK3RZduQ405USBJXuSnzuY/I8zK7fOGMqt6r2+2 +pY0Xk40GP5D+0AQWgFhfMdlkufLKbL11nsgH+jjzIAUn9sJTR7sXqtM0iWx4Q+RieC9 7hfe/V22iVZ197wsE6OIUTyIGZsB51JtUrcWYaRtazcM93VUN2Lv9a5s6Ix1hPNAmHcY 5KtZHyS6vcDh8pcqOWgL3lZCgebGreSQOa6ejKyfJmlIVgA7BtBP96D1HCbBe+BbDMql s+F0ZNRCIUASNcD22UW6rypEr16BkFGwhTbhjcYxATWz+U7B5QPJFFuzlc3skUe6gyuY LQNw== X-Gm-Message-State: AOAM532qrRCAVVoj70u+CZEWH1TsxBFvDJwzh6FtY1m7XTKi2C2vrjBs 21NFSF+mm+dcf+VtS0aTPkxTw3jQ+3f7wg== X-Google-Smtp-Source: ABdhPJzxRiA0oQGYkApZmdoDbuBx8MLTTuAcAItqQdE0iIOhe4MyMaOXy7RjKI4K23IeYZwoHImHww== X-Received: by 2002:a63:d4a:: with SMTP id 10mr679796pgn.175.1599808016477; Fri, 11 Sep 2020 00:06:56 -0700 (PDT) From: Lin Ma X-Google-Original-From: Lin Ma To: libvir-list@redhat.com Subject: [libvirt] [PATCH 10/12] virsh: pool-list: options --all and --inactive are mutually exclusive Date: Fri, 11 Sep 2020 15:06:17 +0800 Message-Id: <20200911070619.12325-11-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.3 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.22 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-pool.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/virsh-pool.c b/tools/virsh-pool.c index 9fac590ec3..634e9ac8cd 100644 --- a/tools/virsh-pool.c +++ b/tools/virsh-pool.c @@ -1146,6 +1146,8 @@ cmdPoolList(vshControl *ctl, const vshCmd *cmd G_GNUC= _UNUSED) inactive =3D vshCommandOptBool(cmd, "inactive"); all =3D vshCommandOptBool(cmd, "all"); =20 + VSH_EXCLUSIVE_OPTIONS_VAR(all, inactive); + if (inactive) flags =3D VIR_CONNECT_LIST_STORAGE_POOLS_INACTIVE; =20 --=20 2.26.0