From nobody Mon Feb 9 18:45:20 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.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 170.10.133.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=1631812674; cv=none; d=zohomail.com; s=zohoarc; b=HkvT55KihYESI/OiDDD5eppCi/W5OZ1Y9iVHMJp0+soLIkjXwX5uiLad3J52VLhGeTJjPov9GktlEF+tSXtTaJDWiU7BF1FHBmnUyVTziUfmflfx4AEMur85VRrCEla9MT3nlf+zbDCwTchpRjY40bVcjAgxFwYHdKfqahNHUPM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1631812674; h=Content-Type:Content-Transfer-Encoding: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=oSdIh5WZaBq/hu92JStxC/bf9SWX1K7akTS6kzkQwxk=; b=BopOSphSfqvjL1rRiyNIaE+405cwGThyDfIG4cPyge0/lQyULo+f1c5kiuPJjOxkMAN4hSq0X2a3fJnYx2Y2jsDHMSh9Dnr0fQ/PyYj1xcl42v3upNDiXeBE4fbyN0p4+/I2iaduV4pGo8EFME/iqZ/z4KWbKloVipbzKbT6W5I= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 1631812674647608.5081759288803; Thu, 16 Sep 2021 10:17:54 -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-196-0tK4yV5PPMaMIRPwU669UQ-1; Thu, 16 Sep 2021 13:17:51 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id DE53A80124F; Thu, 16 Sep 2021 17:17:46 +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 C02DF5C25A; Thu, 16 Sep 2021 17:17:46 +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 90B701805989; Thu, 16 Sep 2021 17:17:46 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 18GHAvrw008307 for ; Thu, 16 Sep 2021 13:10:57 -0400 Received: by smtp.corp.redhat.com (Postfix) id D566760583; Thu, 16 Sep 2021 17:10:57 +0000 (UTC) Received: from speedmetal.redhat.com (unknown [10.40.208.16]) by smtp.corp.redhat.com (Postfix) with ESMTP id 399A018B5E for ; Thu, 16 Sep 2021 17:10:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1631812673; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=oSdIh5WZaBq/hu92JStxC/bf9SWX1K7akTS6kzkQwxk=; b=QY6+l+QOhY0liFv0XzL5nHbe6Oa2bEIvLDPChUZCdyqFKlHDLQcBR5DNUSYM2qZrLodM1x Sp8/1geC6n4u+w40YTiVUwMkuHmEHEdxDVo2H8dNygV8w+4c9epgj29tP6OFr7BIwq0Ms0 YKSYkAe1XIgS+besEc/Qu+X63vWkQao= X-MC-Unique: 0tK4yV5PPMaMIRPwU669UQ-1 From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH 06/14] virsh-snapshot: Use 'virshSnapshotNameCompleter' for '--from' of 'snapshot-list' Date: Thu, 16 Sep 2021 19:10:37 +0200 Message-Id: <82c0912205a28c4f9fe1ae517b57599426b57e01.1631811763.git.pkrempa@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-loop: libvir-list@redhat.com 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.79 on 10.5.11.16 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-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1631812676074100001 Content-Type: text/plain; charset="utf-8" When listing a snapshot tree, the '--from' option takes a name of a snapshot to limit the subset. Use virshSnapshotNameCompleter as completer for the option. Signed-off-by: Peter Krempa --- tools/virsh-snapshot.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/virsh-snapshot.c b/tools/virsh-snapshot.c index e08ecb6910..60a68b334b 100644 --- a/tools/virsh-snapshot.c +++ b/tools/virsh-snapshot.c @@ -1411,6 +1411,7 @@ static const vshCmdOptDef opts_snapshot_list[] =3D { }, {.name =3D "from", .type =3D VSH_OT_STRING, + .completer =3D virshSnapshotNameCompleter, .help =3D N_("limit list to children of given snapshot") }, VIRSH_COMMON_OPT_CURRENT(N_("limit list to children of current snapsho= t")), --=20 2.31.1