From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [45.144.208.40]) by lore.proxmox.com (Postfix) with ESMTPS id 014F91FF09F for ; Tue, 01 Dec 2026 03:44:07 +0100 (CET) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 3881D207BB; Tue, 01 Dec 2026 03:44:06 +0100 (CET) From: Thomas Lamprecht To: pbs-devel@lists.proxmox.com, Dietmar Maurer Subject: applied: [PATCH proxmox-backup] client: pxar: let backup stream callers see each archived entry Date: Tue, 1 Dec 2026 03:27:01 +0100 Message-ID: <179609177615.2684273.16163951524554372327.b4-ty@b4> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261130100300.79179-1-dietmar@proxmox.com> References: <20261130100300.79179-1-dietmar@proxmox.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1796093042012 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.149 Adjusted score from AWL reputation of From: address DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment (newer systems) RCVD_IN_DNSWL_MED -2.3 Sender listed at https://www.dnswl.org/, medium trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: ZFC2T7FLH2V2PPPKZHNQHI46IP22WCTJ X-Message-ID-Hash: ZFC2T7FLH2V2PPPKZHNQHI46IP22WCTJ X-MailFrom: t.lamprecht@proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox Backup Server development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: 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