From nobody Sun Feb 8 22:22:06 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.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 170.10.129.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=1693557162; cv=none; d=zohomail.com; s=zohoarc; b=hCyvcK7uW3x28NAjDrjHBGw2FZU1VPiR0Q7gUVK/qwlH5fGz7ldKR0CKqH3r5CJr60OYuCmbQ0/GVLGqlsW/HO8EbNXztHX27JO2nUW5zyeJ475dXIuIaQAmFVLGnlm2hCXMaDs91k9b2BCyluYROVZr8ebhetWHZUrHSgq20rw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1693557162; 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=3yTeS5aXmHwObH6ZDpw/GSi5wWaVokelhTD7W3Ub34o=; b=llpEIlmaOGL0B2T1xr2pHfKyYglblD9pXHcmLUVbjyXvcb21IM5sBKJGTZ6HXp+lha1H1+Y2fintTKyAKHUCJv5sT/DGUDZBto5N5I1M46p1NMpWLoJGarDokCPMkes/7UWXVUtZsxqvYgJc1Ph1u3L/z6dzjrnz38wxl2dD1Ns= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.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.129.124]) by mx.zohomail.com with SMTPS id 1693557162404798.0666004847278; Fri, 1 Sep 2023 01:32:42 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-537-MxNUqdXEO3qu5-6eVg2pJg-1; Fri, 01 Sep 2023 04:32:35 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 90D791C07854; Fri, 1 Sep 2023 08:32:32 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7A9D32166B25; Fri, 1 Sep 2023 08:32:32 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 0C54419452D2; Fri, 1 Sep 2023 08:32:30 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 24FBC19472AC for ; Fri, 1 Sep 2023 08:32:25 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 18413C15BC0; Fri, 1 Sep 2023 08:32:25 +0000 (UTC) Received: from localhost.localdomain (unknown [10.45.225.41]) by smtp.corp.redhat.com (Postfix) with ESMTP id AF1DBC15BAE for ; Fri, 1 Sep 2023 08:32:24 +0000 (UTC) X-MC-Unique: MxNUqdXEO3qu5-6eVg2pJg-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Pavel Hrdina To: libvir-list@redhat.com Subject: [libvirt PATCH v2 3/6] qemu_saveimage: export qemuSaveImageGetCompressionCommand Date: Fri, 1 Sep 2023 10:32:14 +0200 Message-ID: <0c571daa7c2bf590fb40ec818cf9b39d70527b49.1693556950.git.phrdina@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.8 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.6 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZM-MESSAGEID: 1693557164030100001 Content-Type: text/plain; charset="utf-8"; x-default="true" Signed-off-by: Pavel Hrdina Reviewed-by: Peter Krempa --- src/qemu/qemu_saveimage.c | 2 +- src/qemu/qemu_saveimage.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/qemu/qemu_saveimage.c b/src/qemu/qemu_saveimage.c index eca47171c2..44ab263144 100644 --- a/src/qemu/qemu_saveimage.c +++ b/src/qemu/qemu_saveimage.c @@ -207,7 +207,7 @@ virQEMUSaveDataFinish(virQEMUSaveData *data, } =20 =20 -static virCommand * +virCommand * qemuSaveImageGetCompressionCommand(virQEMUSaveFormat compression) { virCommand *ret =3D NULL; diff --git a/src/qemu/qemu_saveimage.h b/src/qemu/qemu_saveimage.h index 6892e6764f..510576baa2 100644 --- a/src/qemu/qemu_saveimage.h +++ b/src/qemu/qemu_saveimage.h @@ -105,6 +105,9 @@ qemuSaveImageGetCompressionProgram(const char *imageFor= mat, bool use_raw_on_fail) ATTRIBUTE_NONNULL(2); =20 +virCommand * +qemuSaveImageGetCompressionCommand(virQEMUSaveFormat compression); + int qemuSaveImageCreate(virQEMUDriver *driver, virDomainObj *vm, --=20 2.41.0