From nobody Mon Feb 9 18:18:26 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; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1605895907; cv=none; d=zohomail.com; s=zohoarc; b=T8SBYXltk2MdqOGWERYuJf3lYXaCZcz2TFyhi5PnbQHR2vCMH/VsWKcldBVW40Kts48QBXfyx3qy5G7A5LuUG/Y6wbGXG5Yi9DO1GUr2fWUfpRVWF8TGVprOfNql99Y4zS7V0jbhz7sqwppFko7Wg3XXpwsEDxsmjMXIIer0Hi0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1605895907; 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=Gj4/HHR0ZIEdMJH5tFO/54VC3dw/mI9bq/GoJpRUI5E=; b=GXE+TxfOJ8Jq6QhvsK5ydRyhpcZ5DYpcrJejhc0853hadKNmuZlxDPRlNHp/nJhKFPr0G055g0OjexixYf7mTdEKrlIar+7Ahh81IwzX7owqtGO9hz0C4XJsolTOiUBGCpqsIq+OI9k3huNTE4c7kbP1J2hQ4Gcp3HAfGk5Iq88= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass 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 1605895907758309.0003627420102; Fri, 20 Nov 2020 10:11:47 -0800 (PST) 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-573-rVjXaPJROr6qWDbUbHqyKQ-1; Fri, 20 Nov 2020 13:11:43 -0500 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 8E602107AD29; Fri, 20 Nov 2020 18:11:37 +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 5321510013C0; Fri, 20 Nov 2020 18:11:37 +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 BDECE180954D; Fri, 20 Nov 2020 18:11:35 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 0AKIBXpo010892 for ; Fri, 20 Nov 2020 13:11:33 -0500 Received: by smtp.corp.redhat.com (Postfix) id E853F10013C0; Fri, 20 Nov 2020 18:11:33 +0000 (UTC) Received: from localhost (unknown [10.36.110.42]) by smtp.corp.redhat.com (Postfix) with ESMTP id 608DF100AE2C; Fri, 20 Nov 2020 18:11:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1605895906; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=Gj4/HHR0ZIEdMJH5tFO/54VC3dw/mI9bq/GoJpRUI5E=; b=ahqpUdoXX89xDi1v73MaIB1Zq2KBD4uX9EdAcUiD/ECcZCcKyIjdCaoRarFCa+7703U70M 3t1Yj8gQz3gY3c4KbJ3d4ErnXksEFAkfutINle+HWGGRyrowLe0wsgRqAjh31nB/I9JSza 5XvyXSoWRjfETzyKaSBEAkfqPD8kzDk= X-MC-Unique: rVjXaPJROr6qWDbUbHqyKQ-1 From: marcandre.lureau@redhat.com To: libvir-list@redhat.com Subject: [libvirt PATCH 9/9] virsh: add --disk informations to guestinfo command Date: Fri, 20 Nov 2020 22:09:48 +0400 Message-Id: <20201120180948.203254-10-marcandre.lureau@redhat.com> In-Reply-To: <20201120180948.203254-1-marcandre.lureau@redhat.com> References: <20201120180948.203254-1-marcandre.lureau@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-loop: libvir-list@redhat.com Cc: =?UTF-8?q?Michal=20Pr=C3=ADvozn=C3=ADk?= , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= 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 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) From: Marc-Andr=C3=A9 Lureau Signed-off-by: Marc-Andr=C3=A9 Lureau --- tools/virsh-domain.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c index c999458d72..070b8d21fd 100644 --- a/tools/virsh-domain.c +++ b/tools/virsh-domain.c @@ -14219,6 +14219,10 @@ static const vshCmdOptDef opts_guestinfo[] =3D { .type =3D VSH_OT_BOOL, .help =3D N_("report filesystem information"), }, + {.name =3D "disks", + .type =3D VSH_OT_BOOL, + .help =3D N_("report disks information"), + }, {.name =3D NULL} }; =20 @@ -14242,6 +14246,8 @@ cmdGuestInfo(vshControl *ctl, const vshCmd *cmd) types |=3D VIR_DOMAIN_GUEST_INFO_HOSTNAME; if (vshCommandOptBool(cmd, "filesystem")) types |=3D VIR_DOMAIN_GUEST_INFO_FILESYSTEM; + if (vshCommandOptBool(cmd, "disks")) + types |=3D VIR_DOMAIN_GUEST_INFO_DISKS; =20 if (!(dom =3D virshCommandOptDomain(ctl, cmd, NULL))) return false; --=20 2.29.0