From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [IPv6:2a0f:8001:1:32::40]) by lore.proxmox.com (Postfix) with ESMTPS id AC0D91FF0AE for ; Tue, 15 Sep 2026 18:01:10 +0200 (CEST) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id E08B2215D6; Tue, 15 Sep 2026 18:00:59 +0200 (CEST) From: Shan Shaji To: pbs-devel@lists.proxmox.com Subject: [RFC PATCH proxmox-backup 4/4] datastore: backup-manager: expose option to rebuild s3 chunk markers Date: Tue, 15 Sep 2026 17:59:35 +0200 Message-ID: <20260915155935.135460-5-s.shaji@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260915155935.135460-1-s.shaji@proxmox.com> References: <20260915155935.135460-1-s.shaji@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1789488042037 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.452 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: PQYANMPAR6NS5NHUN2JTQTWOH3AKUAVF X-Message-ID-Hash: PQYANMPAR6NS5NHUN2JTQTWOH3AKUAVF X-MailFrom: s.shaji@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: Add the optional --rebuild-chunk-markers flag to the datastore s3-refresh command. Signed-off-by: Shan Shaji --- src/bin/proxmox_backup_manager/datastore.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/bin/proxmox_backup_manager/datastore.rs b/src/bin/proxmox_backup_manager/datastore.rs index 4c1d9daf5..e595f27be 100644 --- a/src/bin/proxmox_backup_manager/datastore.rs +++ b/src/bin/proxmox_backup_manager/datastore.rs @@ -330,6 +330,13 @@ async fn uuid_mount(mut param: Value, _rpcenv: &mut dyn RpcEnvironment) -> Resul store: { schema: DATASTORE_SCHEMA, }, + "rebuild-chunk-markers": { + description: "Create local chunk marker files for all chunks stored in S3. This \ + requires listing all chunk objects and may take long time for large datastores.", + type: bool, + optional: true, + default: false, + }, }, }, )] -- 2.47.3