From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) by lore.proxmox.com (Postfix) with ESMTPS id EED251FF15E for ; Mon, 24 Nov 2025 10:40:29 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id BD4A81D125; Mon, 24 Nov 2025 10:40:38 +0100 (CET) From: Christian Ebner To: pbs-devel@lists.proxmox.com Date: Mon, 24 Nov 2025 10:40:15 +0100 Message-ID: <20251124094018.224661-2-c.ebner@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20251124094018.224661-1-c.ebner@proxmox.com> References: <20251124094018.224661-1-c.ebner@proxmox.com> MIME-Version: 1.0 X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1763977200410 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.047 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.001 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.001 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.001 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 URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [datastore.rs, proxmox.com] Subject: [pbs-devel] [PATCH proxmox-backup v2 1/4] GC: s3: fix local marker cleanup for unreferenced, s3 only chunks 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="utf-8" Content-Transfer-Encoding: base64 Errors-To: pbs-devel-bounces@lists.proxmox.com Sender: "pbs-devel" SWYgYSBjaHVuayBvYmplY3QgaXMgbG9jYXRlZCBvbiB0aGUgczMgb2JqZWN0IHN0b3JlIG9ubHks IG5vdCBiZWluZwpyZWZlcmVuY2VkIGJ5IGFueSBpbmRleCBmaWxlIGFuZCBoYXZpbmcgbm8gbG9j YWwgbWFya2VyIGZpbGUgaXQgd2FzCm1hcmtlZCBmb3IgY2xlYW51cCBieSBwcmV0ZW5kaW5nIGFu IGF0aW1lIGVxdWFsIHRvIHRoZSB1bml4IGVwb2NoLgoKV2hpbGUgdGhpcyB3aWxsIG1hcmsgdGhl IGNodW5rIGZvciBkZWxldGlvbiBmcm9tIHRoZSBiYWNrZW5kIGFuZAppbmNsdWRlIGl0IGluIHRo ZSBkZWxldGUgbGlzdCBmb3IgdGhlIG5leHQgczMgZGVsZXRlIG9iamVjdHMgY2FsbCwgaXQKYWxz byB3aWxsIGxlYWQgdG8gdGhlIGNodW5rIG1hcmtlciBhbmQgTFJVIGNhY2hlIGVudHJ5IGJlaW5n IHRyaWVkIHRvCmNsZWFuIHVwIGxvY2FsbHksIHdoaWNoIGhvd2V2ZXIgZmFpbGVkIHNpbmNlIHRo ZXJlIGlzIG5vIG1hcmtlciB0byBiZQpjbGVhbmVkIHVwLgoKSW4gb3JkZXIgdG8gdHJlYXQgdGhp cyBlZGdlIGNhc2UsIGluc3RlYWQgb2YgcHJldGVuZGluZyBhbiBhdGltZQplcXVhbCB0byB0aGUg dW5peCBlcG9jaCwgbWFrZSB0aGU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ICsxNzA5LDU4IEBAIGltcGwgRGF0YVN0b3JlIHsKICAgICAgICAgICAg ICAgICAgICAgLy8gQ2hlY2sgbG9jYWwgbWFya2VycyAoY3JlYXRlZCBvciBhdGltZSB1cGRhdGVk IGR1cmluZyBwaGFzZTEpIGFuZAogICAgICAgICAgICAgICAgICAgICAvLyBrZWVwIG9yIGRlbGV0 ZSBjaHVuayBiYXNlZCBvbiB0aGF0LgogICAgICAgICAgICAgICAgICAgICBsZXQgYXRpbWUgPSBt YXRjaCBzdGQ6OmZzOjptZXRhZGF0YSgmY2h1bmtfcGF0aCkgewotICAgICAgICAgICAgICAgICAg ICAgICAgT2soc3RhdCkgPT4gc3RhdC5hY2Nlc3NlZCgpPywKKyAgICAgICAgICAgICAgICAgICAg ICAgIE9rKHN0YXQpID0+IFNvbWUoc3RhdC5hY2Nlc3NlZCgpPyksCiAgICAgICAgICAgICAgICAg ICAgICAgICBFcnIoZXJyKSBpZiBlcnIua2luZCgpID09IHN0ZDo6aW86OkVycm9yS2luZDo6Tm90 Rm91bmQgPT4gewogICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmIHNlbGYuaW5uZXIuY2h1 bmtfc3RvcmUuY2xlYXJfY2h1bmtfZXhwZWN0ZWRfbWFyaygmZGlnZXN0KT8gewogICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICB1bnNhZmUgewogICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgLy8gY2h1bmsgc3RvcmUgbG9jayBoZWxkCiAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICBzZWxmLmlubmVyLmNodW5rX3N0b3JlLnJlcGxhY2VfY2h1bmtfd2l0 aF9tYXJrZXIoJmRpZ2VzdCk/OwogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9Ci0g ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFN5c3RlbVRpbWU6Om5vdygpCisgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgIFNvbWUoU3lzdGVtVGltZTo6bm93KCkpCiAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHsKLSAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgLy8gRmlsZSBub3QgZm91bmQsIGRlbGV0ZSBieSBzZXR0aW5nIGF0aW1lIHRvIHVuaXgg ZXBvY2gKLSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgU3lzdGVtVGltZTo6VU5JWF9F UE9DSAorICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyBGaWxlIG5vdCBmb3VuZCwg b25seSBkZWxldGUgZnJvbSBTMworICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBOb25l CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgICAgICAgICAg fQogICAgICAgICAgICAgICAgICAgICAgICAgRXJyKGVycikgPT4gcmV0dXJuIEVycihlcnIuaW50 bygpKSwKICAgICAgICAgICAgICAgICAgICAgfTsKLSAgICAgICAgICAgICAgICAgICAgbGV0IGF0 aW1lID0gYXRpbWUuZHVyYXRpb25fc2luY2UoU3lzdGVtVGltZTo6VU5JWF9FUE9DSCk/LmFzX3Nl Y3MoKSBhcyBpNjQ7Ci0KLSAgICAgICAgICAgICAgICAgICAgdW5zYWZlIHsKLSAgICAgICAgICAg ICAgICAgICAgICAgIHNlbGYuaW5uZXIuY2h1bmtfc3RvcmUuY29uZF9zd2VlcF9jaHVuaygKLSAg ICAgICAgICAgICAgICAgICAgICAgICAgICBhdGltZSwKLSAgICAgICAgICAgICAgICAgICAgICAg ICAgICBtaW5fYXRpbWUsCi0gICAgICAgICAgICAgICAgICAgICAgICAgICAgb2xkZXN0X3dyaXRl ciwKLSAgICAgICAgICAgICAgICAgICAgICAgICAgICBjb250ZW50LnNpemUsCi0gICAgICAgICAg ICAgICAgICAgICAgICAgICAgYmFkLAotICAgICAgICAgICAgICAgICAgICAgICAgICAgICZtdXQg Z2Nfc3RhdHVzLAotICAgICAgICAgICAgICAgICAgICAgICAgICAgIHx8IHsKLSAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgaWYgbGV0IFNvbWUoY2FjaGUpID0gc2VsZi5jYWNoZSgpIHsK LSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmICFiYWQgewotICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNhY2hlLnJlbW92ZSgmZGlnZXN0KT87Ci0g ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9IGVsc2UgewotICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgIHN0ZDo6ZnM6OnJlbW92ZV9maWxlKGNodW5rX3Bh dGgpPzsKKyAgICAgICAgICAgICAgICAgICAgaWYgbGV0IFNvbWUoYXRpbWUpID0gYXRpbWUgewor ICAgICAgICAgICAgICAgICAgICAgICAgbGV0IGF0aW1lID0gYXRpbWUuZHVyYXRpb25fc2luY2Uo U3lzdGVtVGltZTo6VU5JWF9FUE9DSCk/LmFzX3NlY3MoKSBhcyBpNjQ7CisKKyAgICAgICAgICAg ICAgICAgICAgICAgIHVuc2FmZSB7CisgICAgICAgICAgICAgICAgICAgICAgICAgICAgc2VsZi5p bm5lci5jaHVua19zdG9yZS5jb25kX3N3ZWVwX2NodW5rKAorICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICBhdGltZSwKKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbWluX2F0 aW1lLAorICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBvbGRlc3Rfd3JpdGVyLAorICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjb250ZW50LnNpemUsCisgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgIGJhZCwKKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg Jm11dCBnY19zdGF0dXMsCisgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHx8IHsKKyAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmIGxldCBTb21lKGNhY2hlKSA9IHNl bGYuY2FjaGUoKSB7CisgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYg IWJhZCB7CisgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNhY2hl LnJlbW92ZSgmZGlnZXN0KT87CisgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgfSBlbHNlIHsKKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg c3RkOjpmczo6cmVtb3ZlX2ZpbGUoY2h1bmtfcGF0aCk/OworICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg IH0KLSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfQogCi0gICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgIC8vIHNldCBhZ2UgYmFzZWQgb24gZmlyc3QgaW5zZXJ0aW9uCi0gICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmIGRlbGV0ZV9saXN0LmlzX2VtcHR5KCkgewot ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZGVsZXRlX2xpc3RfYWdlID0gZXBv Y2hfaTY0KCk7Ci0gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0KLSAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgZGVsZXRlX2xpc3QucHVzaCgoY29udGVudC5rZXksIF9jaHVu a19ndWFyZCkpOwotICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBPaygoKSkKLSAgICAg ICAgICAgICAgICAgICAgICAgICAgICB9LAotICAgICAgICAgICAgICAgICAgICAgICAgKT87Cisg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyBzZXQgYWdlIGJhc2VkIG9uIGZp cnN0IGluc2VydGlvbgorICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgZGVs ZXRlX2xpc3QuaXNfZW1wdHkoKSB7CisgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgZGVsZXRlX2xpc3RfYWdlID0gZXBvY2hfaTY0KCk7CisgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICB9CisgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBk ZWxldGVfbGlzdC5wdXNoKChjb250ZW50LmtleSwgX2NodW5rX2d1YXJkKSk7CisgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICBPaygoKSkKKyAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgfSwKKyAgICAgICAgICAgICAgICAgICAgICAgICAgICApPzsKKyAgICAgICAgICAg ICAgICAgICAgICAgIH0KKyAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHsKKyAgICAgICAgICAg ICAgICAgICAgICAgIGdjX3N0YXR1cy5yZW1vdmVkX2NodW5rcyArPSAxOworICAgICAgICAgICAg ICAgICAgICAgICAgZ2Nfc3RhdHVzLnJlbW92ZWRfYnl0ZXMgKz0gY29udGVudC5zaXplOworICAg ICAgICAgICAgICAgICAgICAgICAgLy8gc2V0IGFnZSBiYXNlZCBvbiBmaXJzdCBpbnNlcnRpb24K KyAgICAgICAgICAgICAgICAgICAgICAgIGlmIGRlbGV0ZV9saXN0LmlzX2VtcHR5KCkgeworICAg ICAgICAgICAgICAgICAgICAgICAgICAgIGRlbGV0ZV9saXN0X2FnZSA9IGVwb2NoX2k2NCgpOwor ICAgICAgICAgICAgICAgICAgICAgICAgfQorICAgICAgICAgICAgICAgICAgICAgICAgZGVsZXRl X2xpc3QucHVzaCgoY29udGVudC5rZXksIF9jaHVua19ndWFyZCkpOwogICAgICAgICAgICAgICAg ICAgICB9CiAKICAgICAgICAgICAgICAgICAgICAgY2h1bmtfY291bnQgKz0gMTsKLS0gCjIuNDcu MwoKCgpfX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fXwpwYnMt ZGV2ZWwgbWFpbGluZyBsaXN0CnBicy1kZXZlbEBsaXN0cy5wcm94bW94LmNvbQpodHRwczovL2xp c3RzLnByb3htb3guY29tL2NnaS1iaW4vbWFpbG1hbi9saXN0aW5mby9wYnMtZGV2ZWwK