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 08C7C1FF15E for ; Mon, 24 Nov 2025 18:04:23 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 2240B2C21; Mon, 24 Nov 2025 18:04:33 +0100 (CET) From: Samuel Rufinatscha To: pbs-devel@lists.proxmox.com Date: Mon, 24 Nov 2025 18:04:21 +0100 Message-ID: <20251124170423.303300-5-s.rufinatscha@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20251124170423.303300-1-s.rufinatscha@proxmox.com> References: <20251124170423.303300-1-s.rufinatscha@proxmox.com> MIME-Version: 1.0 X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1764003833686 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.308 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 Subject: [pbs-devel] [PATCH proxmox-backup v5 4/4] partial fix #6049: datastore: add TTL fallback to catch manual config edits 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" VGhlIGxvb2t1cCBmYXN0IHBhdGggcmVhY3RzIHRvIEFQSS1kcml2ZW4gY29uZmlnIGNoYW5nZXMg YmVjYXVzZQpzYXZlX2NvbmZpZygpIGJ1bXBzIHRoZSBnZW5lcmF0aW9uLiBNYW51YWwgZWRpdHMg b2YgZGF0YXN0b3JlLmNmZyBkbwpub3QgYnVtcCB0aGUgY291bnRlci4gVG8ga2VlcCB0aGUgc3lz dGVtIHJvYnVzdCBhZ2FpbnN0IHN1Y2ggZWRpdHMKd2l0aG91dCByZWludHJvZHVjaW5nIGNvbmZp ZyByZWFkaW5nIGFuZCBoYXNoaW5nIG9uIHRoZSBob3QgcGF0aCwgdGhpcwpwYXRjaCBhZGRzIGEg VFRMIHRvIHRoZSBjYWNoZSBlbnRyeS4KCklmIHRoZSBjYWNoZWQgY29uZmlnIGlzIG9sZGVyIHRo YW4KREFUQVNUT1JFX0NPTkZJR19DQUNIRV9UVExfU0VDUyAoc2V0IHRvIDYwcyksIHRoZSBuZXh0 IGxvb2t1cCB0YWtlcwp0aGUgc2xvdyBwYXRoIGFuZCByZWZyZXNoZXMgdGhlIGVudHJ5LiBBcyBh biBvcHRpbWl6YXRpb24sIGEgY2hlY2sgdG8KY2F0Y2ggbWFudWFsIGVkaXRzIHdhcyBhZGRlZCAo aWYgdGhlIGRpZ2VzdCBjaGFuZ2VkIGJ1dCBnZW5lcmF0aW9uCnN0YXllZCB0aGUgc2FtZSksIHNv IHRoYXQgdGhlIGdlbmVyYXRpb24gaXMgb25seSBidW1wZWQgd2hlbiBuZWVkZWQuCgpMaW5rcwoK WzFdIGNhcmdvLWZs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ZW50cnkgZm9yCi0gICAgICAg ICAgICAvLyBtYWludGVuYW5jZSBtYW5kYXRlLgotICAgICAgICAgICAgbGV0IHByZXZfZ2VuID0g dmVyc2lvbl9jYWNoZS5pbmNyZWFzZV9kYXRhc3RvcmVfZ2VuZXJhdGlvbigpOwotICAgICAgICAg ICAgZWZmZWN0aXZlX2dlbiA9IHByZXZfZ2VuICsgMTsKKyAgICAgICAgICAgIC8vIEJ1bXAgdGhl IGdlbmVyYXRpb24gaWYgdGhlIGNvbmZpZyBoYXMgYmVlbiBjaGFuZ2VkIG1hbnVhbGx5LgorICAg ICAgICAgICAgLy8gVGhpcyBlbnN1cmVzIHRoYXQgRHJvcCBoYW5kbGVycyB3aWxsIGRldGVjdCB0 aGF0IGEgbmV3ZXIgY29uZmlnIGV4aXN0cworICAgICAgICAgICAgLy8gYW5kIHdpbGwgbm90IHJl bHkgb24gYSBzdGFsZSBjYWNoZWQgZW50cnkgZm9yIG1haW50ZW5hbmNlIG1hbmRhdGUuCisgICAg ICAgICAgICBsZXQgKHByZXZfZ2VuLCBwcmV2X2RpZ2VzdCkgPSBjb25maWdfY2FjaGUKKyAgICAg ICAgICAgICAgICAuYXNfcmVmKCkKKyAgICAgICAgICAgICAgICAubWFwKHxjfCAoU29tZShjLmxh c3RfZ2VuZXJhdGlvbiksIFNvbWUoYy5kaWdlc3QpKSkKKyAgICAgICAgICAgICAgICAudW53cmFw X29yKChOb25lLCBOb25lKSk7CisKKyAgICAgICAgICAgIGxldCBtYW51YWxfZWRpdCA9IG1hdGNo IChwcmV2X2dlbiwgcHJldl9kaWdlc3QpIHsKKyAgICAgICAgICAgICAgICAoU29tZShwcmV2X2cp LCBTb21lKHByZXZfZCkpID0+IHByZXZfZyA9PSBjdXJyZW50X2dlbiAmJiBwcmV2X2QgIT0gZGln ZXN0LAorICAgICAgICAgICAgICAgIF8gPT4gZmFsc2UsCisgICAgICAgICAgICB9OworCisgICAg ICAgICAgICBpZiBtYW51YWxfZWRpdCB7CisgICAgICAgICAgICAgICAgbGV0IHByZXZfZ2VuID0g dmVyc2lvbl9jYWNoZS5pbmNyZWFzZV9kYXRhc3RvcmVfZ2VuZXJhdGlvbigpOworICAgICAgICAg ICAgICAgIGVmZmVjdGl2ZV9nZW4gPSBwcmV2X2dlbiArIDE7CisgICAgICAgICAgICB9CiAKICAg ICAgICAgICAgIC8vIFBlcnNpc3QKICAgICAgICAgICAgICpjb25maWdfY2FjaGUgPSBTb21lKERh dGFzdG9yZUNvbmZpZ0NhY2hlIHsKICAgICAgICAgICAgICAgICBjb25maWc6IGNvbmZpZy5jbG9u ZSgpLAorICAgICAgICAgICAgICAgIGRpZ2VzdCwKICAgICAgICAgICAgICAgICBsYXN0X2dlbmVy YXRpb246IGVmZmVjdGl2ZV9nZW4sCisgICAgICAgICAgICAgICAgbGFzdF91cGRhdGU6IG5vdywK ICAgICAgICAgICAgIH0pOwogICAgICAgICB9CiAKLS0gCjIuNDcuMwoKCgpfX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fXwpwYnMtZGV2ZWwgbWFpbGluZyBsaXN0 CnBicy1kZXZlbEBsaXN0cy5wcm94bW94LmNvbQpodHRwczovL2xpc3RzLnByb3htb3guY29tL2Nn aS1iaW4vbWFpbG1hbi9saXN0aW5mby9wYnMtZGV2ZWwK