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 D0CBF1FF0BC for ; Wed, 02 Dec 2026 11:16:49 +0100 (CET) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 40F6F20AF8; Wed, 02 Dec 2026 11:16:49 +0100 (CET) Message-ID: <0c47b62b-514e-43d7-af01-84a98b5cf9fb@proxmox.com> Date: Wed, 2 Dec 2026 11:16:44 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH proxmox-backup 3/5] client: pxar: let callers see entries left out for lack of permission To: Dietmar Maurer , pbs-devel@lists.proxmox.com References: <20261201091111.940190-1-dietmar@proxmox.com> <20261201091111.940190-4-dietmar@proxmox.com> Content-Language: en-US, de-DE From: Christian Ebner In-Reply-To: <20261201091111.940190-4-dietmar@proxmox.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1796206604681 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.336 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: BTOH3TM3X43M7M6XURX6E7XAVXT6IA4O X-Message-ID-Hash: BTOH3TM3X43M7M6XURX6E7XAVXT6IA4O X-MailFrom: c.ebner@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 12/1/26 10:11 AM, Dietmar Maurer wrote: > Entries that cannot be opened or stat'ed for lack of permission are > left out of the archive with a warning in the log, and the backup > succeeds. A caller that reports on a backup, such as a graphical > client showing its result, cannot tell such a run from a complete one > without parsing the log. > > An optional callback now gets the archive-relative path of each entry > left out this way. The warnings stay as they were, and existing > callers pass no callback, so their behavior is unchanged. > > An unreadable .pxarexclude is reported when its directory's patterns > are read, as they are not applied then, which can include much more > data than intended. It is not reported again when opened as an entry, > nor missed when a pattern excludes it as such. > > Signed-off-by: Dietmar Maurer Shouldn't this also cover the ESTALE and (less critical in the intended context AFAIU) ENOENT errors? It could make sense to generalize the callback a bit more and pass the Errno as parameter, letting the caller decide which ones to act upon?