all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: Shan Shaji <s.shaji@proxmox.com>
To: pbs-devel@lists.proxmox.com
Subject: [PATCH proxmox-backup] fix #7024: pxar: show archive summary for legacy and data mode
Date: Tue,  2 Jun 2026 15:14:07 +0200	[thread overview]
Message-ID: <20260602131407.326889-1-s.shaji@proxmox.com> (raw)

earlier, the archiver summary was only being shown when the change
detection mode is metadata. To improve this, log the total number of
files and the amount of data re-encoded for legacy and data modes
as well.

Signed-off-by: Shan Shaji <s.shaji@proxmox.com>
---

 **note**: will send follow up patches for the verbose option and logs
 improvement.

 pbs-client/src/pxar/create.rs | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/pbs-client/src/pxar/create.rs b/pbs-client/src/pxar/create.rs
index 304de4d83..c828db790 100644
--- a/pbs-client/src/pxar/create.rs
+++ b/pbs-client/src/pxar/create.rs
@@ -348,7 +348,20 @@ where
             ),
             archiver.reuse_stats.partial_chunks_count,
         );
+    } else {
+        info!("Processing summary: ");
+
+        let total_files =
+            archiver.reuse_stats.files_reencoded_count + archiver.reuse_stats.files_hardlink_count;
+
+        info!(
+            "- {} total files ({} hardlinks) with {} data",
+            total_files,
+            archiver.reuse_stats.files_hardlink_count,
+            HumanByte::from(archiver.reuse_stats.total_reencoded_size),
+        );
     }
+
     Ok(())
 }
 
-- 
2.47.3





             reply	other threads:[~2026-06-02 13:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-02 13:14 Shan Shaji [this message]
2026-06-03  8:17 ` [PATCH proxmox-backup] fix #7024: pxar: show archive summary for legacy and data mode Christian Ebner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260602131407.326889-1-s.shaji@proxmox.com \
    --to=s.shaji@proxmox.com \
    --cc=pbs-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal