From nobody Fri Dec 19 16:07:17 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 205.139.110.120 as permitted sender) client-ip=205.139.110.120; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.120 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=1574804592; cv=none; d=zohomail.com; s=zohoarc; b=C83yTs4A+HPKaalwcGsO7UqJ9C2+agvBlczCPUiM2aBAqm7Exae/T22Zw1ApF2n9XrFJVptcRKKWad9eZOAn9xUq8JfTLmj6qyng6mkSta4fxXscHf7D3Mc5GeUHg3zUPPipI+fc44+2auTTZlc0Ur6bEkzLlK0MO6Ih2ehMU/w= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1574804592; 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=yl7tFsP6ExLDZgpun9V8Bs6mwYISmDr80vKOWabSzq0=; b=GAoX1KB4V6vgVLWiihtQMCQ7WRBISUe2VqHULP0Tudt3Zwu5uwPCJ8cfXijCwpihCT8j/uT0bHwzYT6ZVrDvLErXO7bWyM85PRbQ/C2uNeaRp4TidEbtnwM/p9Q4AMn3X2+x4+o/OSDXeiWTAcOt6Jtj99rV1hO9EP+fxHxyBlU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.120 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-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) by mx.zohomail.com with SMTPS id 1574804592698118.80237581999222; Tue, 26 Nov 2019 13:43:12 -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-426-7JO_ZloQNjyh8HllxAsqBQ-1; Tue, 26 Nov 2019 16:40:45 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 134BF1052BA4; Tue, 26 Nov 2019 21:40:38 +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 D89565D6C8; Tue, 26 Nov 2019 21:40: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 90E144E574; Tue, 26 Nov 2019 21:40:37 +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 xAQLeVrY027960 for ; Tue, 26 Nov 2019 16:40:31 -0500 Received: by smtp.corp.redhat.com (Postfix) id 016BC600CD; Tue, 26 Nov 2019 21:40:31 +0000 (UTC) Received: from angien.redhat.com (unknown [10.43.2.48]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7D96D600CA for ; Tue, 26 Nov 2019 21:40:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1574804591; 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=yl7tFsP6ExLDZgpun9V8Bs6mwYISmDr80vKOWabSzq0=; b=SnsiFFZ5f/zEN1TQ6DVHVE4x0C+X5eN548vvAjr2LxPPP7UeCjEiW1rh9Ui4f1R1cyAFKg bzJodXlm1gwqgFu0WI4GW+Nepx6ayh/T89LCwgYS7F1BdpEy0Hhz2UQgdsQKUvtUlLs6pm i4qXO9tfkzor/BtLdaMeJ462eUNX8N4= From: Peter Krempa To: libvir-list@redhat.com Date: Tue, 26 Nov 2019 22:40:02 +0100 Message-Id: <8dfce7651cc0af58413b7a90ccc4d01239c6b135.1574803736.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 Subject: [libvirt] [PATCH 16/21] conf: backup: Add fields for tracking stats of completed sub-jobs 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.15 X-MC-Unique: 7JO_ZloQNjyh8HllxAsqBQ-1 X-Mimecast-Spam-Score: 0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" We need a place to store stats of completed sub-jobs so that we can later report accurate stats. Signed-off-by: Peter Krempa --- src/conf/backup_conf.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/conf/backup_conf.h b/src/conf/backup_conf.h index c970e01920..5dfc42e297 100644 --- a/src/conf/backup_conf.h +++ b/src/conf/backup_conf.h @@ -70,6 +70,13 @@ struct _virDomainBackupDef { size_t ndisks; /* should not exceed dom->ndisks */ virDomainBackupDiskDef *disks; + + /* internal data */ + /* statistic totals for completed diks */ + unsigned long long push_transferred; + unsigned long long push_total; + unsigned long long pull_tmp_used; + unsigned long long pull_tmp_total; }; typedef enum { --=20 2.23.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list