From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [IPv6:2a01:7e0:0:424::9]) by lore.proxmox.com (Postfix) with ESMTPS id 8B5311FF389 for ; Wed, 5 Jun 2024 17:41:43 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 5138E4D3; Wed, 5 Jun 2024 17:42:13 +0200 (CEST) From: Christian Ebner To: pbs-devel@lists.proxmox.com Date: Wed, 5 Jun 2024 17:41:53 +0200 Message-Id: <20240605154155.2365-1-c.ebner@proxmox.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.028 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record T_SCC_BODY_TEXT_LINE -0.01 - URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [mk-format-hashes.rs, lib.rs, tools.rs, fs.rs, main.rs, mod.rs, extract.rs] Subject: [pbs-devel] [PATCH v2 stable-2 pxar proxmox-backup 0/2] backport pxar format version check X-BeenThere: pbs-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox Backup Server development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Proxmox Backup Server development discussion Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: pbs-devel-bounces@lists.proxmox.com Sender: "pbs-devel" This patches backport the format version entry present in pxar archives to start with format version 2 and allows to early bail on archives when an incompatible format version is detected. changes since version 1: - adapted to FormatVersion deserializer as present in bumped pxar version - added check to cover also access via Accessor instances - removed display implementation and adapted bail message - added additional checks to pxar bin pxar: Christian Ebner (1): format/decoder/accessor: backport pxar entry type `Version` examples/mk-format-hashes.rs | 5 +++++ src/accessor/mod.rs | 28 ++++++++++++++++++++++++++-- src/decoder/mod.rs | 28 ++++++++++++++++++++++++++-- src/format/mod.rs | 19 +++++++++++++++++++ src/lib.rs | 3 +++ tests/simple/fs.rs | 1 + 6 files changed, 80 insertions(+), 4 deletions(-) proxmox-backup: Christian Ebner (1): client: pxar: bail on incompatible format versions pbs-client/src/catalog_shell.rs | 2 +- pbs-client/src/pxar/extract.rs | 3 +++ pbs-client/src/pxar/tools.rs | 14 ++++++++------ pxar-bin/src/main.rs | 6 +++++- 4 files changed, 17 insertions(+), 8 deletions(-) -- 2.30.2 _______________________________________________ pbs-devel mailing list pbs-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel