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 8A5711FF0B3 for ; Thu, 26 Nov 2026 17:49:40 +0100 (CET) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 5C3DE216ED; Thu, 26 Nov 2026 17:49:40 +0100 (CET) From: Christian Ebner To: pbs-devel@lists.proxmox.com Subject: [PATCH proxmox-backup 0/3] fix #8373: avoid loosing fs feature flags on mountpoints Date: Thu, 26 Nov 2026 17:49:17 +0100 Message-ID: <20261126164920.539641-1-c.ebner@proxmox.com> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1795711776327 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.347 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: 2CPDWES43IWS6D3X25DSZONU6HFGYP4D X-Message-ID-Hash: 2CPDWES43IWS6D3X25DSZONU6HFGYP4D 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: FS feature flags control which metadata attributes are supported by the filesystem and which can be skipped since known to not be supported. For filesystems not known to the client, a try all approach is used, enabling all fs features and clear them when the filesystem errors with missing support on the first tried entry. This however incorrectly cleared the flag from the global pxar archiver state for all subsequent entries, not just the ones on the filesystem not supporting them. To fix this, first refactor the whole metadata gathering logic in order to decouple and encapsulate the logic from the pxar archiver and bundle state information from the filesystem into a dedicated type. Then introduce a cache to store any encountered filesystem, identified by device id, and use the cached information to identify mountpoint boundaries and supported fs feature flags. This has the advantage that it is now better decoupled from the current state of the archiver. Link to the issue in the bugtracker: https://bugzilla.proxmox.com/show_bug.cgi?id=8373 Christian Ebner (3): client: pxar: refactor metadata gathering helpers into MetadataAggregator client: pxar: encapsulate filesystem info in FsInfo fix #8373: client: pxar: avoid losing fs feature flags on mountpoints pbs-client/src/pxar/create.rs | 498 ++++---------------------------- pbs-client/src/pxar/metadata.rs | 482 ++++++++++++++++++++++++++++++- 2 files changed, 531 insertions(+), 449 deletions(-) -- 2.47.3