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 3C4501FF173 for ; Mon, 25 Nov 2024 09:59:47 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id B1907CF82; Mon, 25 Nov 2024 09:59:58 +0100 (CET) From: Gabriel Goller To: pbs-devel@lists.proxmox.com Date: Mon, 25 Nov 2024 09:59:53 +0100 Message-Id: <20241125085953.19828-1-g.goller@proxmox.com> X-Mailer: git-send-email 2.39.5 MIME-Version: 1.0 X-SPAM-LEVEL: Spam detection results: 0 AWL -0.038 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 Subject: [pbs-devel] [PATCH proxmox-backup v2] reuse-datastore: avoid creating another default prune job 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" SWYgYSBkYXRhc3RvcmUgd2l0aCBhIGRlZmF1bHQgcHJ1bmUgam9iIGlzIHJlbW92ZWQsIHRoZSBw cnVuZSBqb2IgaXMKcHJlc2VydmVyZCBhcyBpdCBpcyBzdG9yZWQgaW4gL2V0Yy9wcm94bW94LWJh Y2t1cC9wcnVuZS5jZmcuIFdlIGFsc28KY3JlYXRlIGEgZGVmYXVsdCBwcnVuZSBqb2IgZm9yIGV2 ZXJ5IGRhdGFzdG9yZ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gICAgICAgUHJ1bmVKb2JDb25maWcgewotICAgICAgICAgICAgaWQsCi0gICAgICAgICAg ICBzdG9yZTogY29uZmlnLm5hbWUuY2xvbmUoKSwKLSAgICAgICAgICAgIGNvbW1lbnQ6IE5vbmUs Ci0gICAgICAgICAgICBkaXNhYmxlOiBmYWxzZSwKLSAgICAgICAgICAgIHNjaGVkdWxlOiBzY2hl ZHVsZS5jbG9uZSgpLAotICAgICAgICAgICAgb3B0aW9uczogUHJ1bmVKb2JPcHRpb25zIHsKLSAg ICAgICAgICAgICAgICBrZWVwOiBjb25maWcua2VlcC5jbG9uZSgpLAotICAgICAgICAgICAgICAg IG1heF9kZXB0aDogTm9uZSwKLSAgICAgICAgICAgICAgICBuczogTm9uZSwKLSAgICAgICAgICAg IH0sCi0gICAgICAgIH0KLSAgICB9KTsKKyAgICBsZXQgbXV0IHBydW5lX2pvYl9jb25maWcgPSBO b25lOworICAgIGlmICFkZWZhdWx0X3BydW5lX2pvYl9leGlzdGluZygmY29uZmlnLm5hbWUpPyB7 CisgICAgICAgIHBydW5lX2pvYl9jb25maWcgPSBjb25maWcucHJ1bmVfc2NoZWR1bGUuYXNfcmVm KCkubWFwKHxzY2hlZHVsZXwgeworICAgICAgICAgICAgbGV0IG11dCBpZCA9IGZvcm1hdCEoImRl ZmF1bHQte30te30iLCBjb25maWcubmFtZSwgVXVpZDo6Z2VuZXJhdGUoKSk7CisgICAgICAgICAg ICBpZC50cnVuY2F0ZSgzMik7CisKKyAgICAgICAgICAgIFBydW5lSm9iQ29uZmlnIHsKKyAgICAg ICAgICAgICAgICBpZCwKKyAgICAgICAgICAgICAgICBzdG9yZTogY29uZmlnLm5hbWUuY2xvbmUo KSwKKyAgICAgICAgICAgICAgICBjb21tZW50OiBOb25lLAorICAgICAgICAgICAgICAgIGRpc2Fi bGU6IGZhbHNlLAorICAgICAgICAgICAgICAgIHNjaGVkdWxlOiBzY2hlZHVsZS5jbG9uZSgpLAor ICAgICAgICAgICAgICAgIG9wdGl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