public inbox for pbs-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Thomas Lamprecht <t.lamprecht@proxmox.com>
To: pbs-devel@lists.proxmox.com, Dietmar Maurer <dietmar@proxmox.com>
Subject: applied: [PATCH proxmox-backup] client: pxar: let backup stream callers see each archived entry
Date: Tue,  1 Dec 2026 03:27:01 +0100	[thread overview]
Message-ID: <179609177615.2684273.16163951524554372327.b4-ty@b4> (raw)
In-Reply-To: <20261130100300.79179-1-dietmar@proxmox.com>

On Mon, 30 Nov 2026 11:03:00 +0100, Dietmar Maurer wrote:
> A graphical client wants to show which file a running backup is at.
> Byte counts alone can mislead: a sparse file, such as a core dump,
> can be read for a long time while the counter climbs far beyond the
> data size on disk.
> 
> The archiver already calls a per-entry callback, but the stream
> hardwired it to a debug log line. Callers can now pass their own
> callback, which runs in addition to the log line. The command line
> client passes none, so its behavior is unchanged.
> 
> [...]

Applied, thanks!

I put a fix in front of it, so that the backup streams end with an
error instead of waiting forever if the archiver ever panics. The
backup is lost either way, but a hanging client never reports the
failure and, for example, leaves a vzdump job running and the guest
locked until someone kills it. That was pre-existing, but now a panic
in a caller's callback, e.g. on a send to a broken GUI channel, would
hang the backup too.

I also clarified the doc comment of the callback: the archiver can
still skip an entry after the call, for example if it vanished, and in
the metadata change detection mode it may read a file's contents
later, or reuse them from the previous snapshot without reading them;
which is fine for your use case but might be unexpected for others
reusing this in the future.

[1/1] client: pxar: let backup stream callers see each archived entry
      commit: e8d87d029c99d32c89e255a64d3fc09a79ce3a1c




      reply	other threads:[~2026-12-01  2:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-30 10:03 [PATCH proxmox-backup] client: pxar: let backup stream callers see each archived entry Dietmar Maurer
2026-12-01  2:27 ` Thomas Lamprecht [this message]

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=179609177615.2684273.16163951524554372327.b4-ty@b4 \
    --to=t.lamprecht@proxmox.com \
    --cc=dietmar@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal