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 755761FF13F for ; Thu, 26 Feb 2026 15:40:32 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id B277C33E46; Thu, 26 Feb 2026 15:41:30 +0100 (CET) From: Robert Obkircher To: pbs-devel@lists.proxmox.com Subject: [PATCH v1 proxmox-backup 00/11] fix various warnings Date: Thu, 26 Feb 2026 15:40:14 +0100 Message-ID: <20260226144033.211039-1-r.obkircher@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: 1772116838801 X-SPAM-LEVEL: Spam detection results: 0 AWL -1.012 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 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED 0.618 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. RCVD_IN_VALIDITY_RPBL_BLOCKED 0.734 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. RCVD_IN_VALIDITY_SAFE_BLOCKED 0.78 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. 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: Z2RPPLE2LUSIZCVW6SACEZBZRLYQJDEM X-Message-ID-Hash: Z2RPPLE2LUSIZCVW6SACEZBZRLYQJDEM X-MailFrom: r.obkircher@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: The first 10 patches fix all clippy warnings expect the one about future incompatibilities in the num-bigint-dig v0.8.4 depencency. The last patch is an attempt at fixing the compiler warnings about the deprecated flock function, but I'm not sure if this is an acceptable solution. Robert Obkircher (11): datastore: remove allow(clippy::cast_ptr_alignment) attribute api: use checked_div for compression ratio calculation datastore+server: sort by key instead of using comparison functions api: remove unnecessary ampersand to fix clippy warning bin: debug: use pattern match instead of is_some+unwrap bin: proxy: fix clippy warning about unnecesary use of find_map datastore: silence warning about too many arguments client: catalog shell: avoid unnecessary block_on in async code client: catalog shell: combine multiple block_on calls into one client: catalog shell: avoid unsafe transmute tape: media catalog: use Flock wrapper instead of deprecated function pbs-client/src/catalog_shell.rs | 124 +++++++++++++----------- pbs-datastore/src/backup_info.rs | 4 +- pbs-datastore/src/chunk_store.rs | 1 + pbs-datastore/src/datastore.rs | 4 +- pbs-datastore/src/dynamic_index.rs | 1 - src/api2/backup/environment.rs | 7 +- src/api2/node/certificates.rs | 2 +- src/bin/proxmox-backup-proxy.rs | 4 +- src/bin/proxmox_backup_debug/inspect.rs | 12 ++- src/server/pull.rs | 2 +- src/server/push.rs | 2 +- src/tape/media_catalog.rs | 49 +++++----- 12 files changed, 112 insertions(+), 100 deletions(-) -- 2.47.3