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 BA1BA1FF164 for ; Fri, 22 Nov 2024 12:12:18 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id D782D109D7; Fri, 22 Nov 2024 12:12:26 +0100 (CET) From: Gabriel Goller To: pbs-devel@lists.proxmox.com Date: Fri, 22 Nov 2024 12:11:50 +0100 Message-Id: <20241122111150.162327-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] 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 ZXJ5IGR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F1bHQt e30te30iLCBjb25maWcubmFtZSwgVXVpZDo6Z2VuZXJhdGUoKSk7Ci0gICAgICAgIGlkLnRydW5j YXRlKDMyKTsKLQotICAgICAgICBQcnVuZUpvYkNvbmZpZyB7Ci0gICAgICAgICAgICBpZCwKLSAg ICAgICAgICAgIHN0b3JlOiBjb25maWcubmFtZS5jbG9uZSgpLAotICAgICAgICAgICAgY29tbWVu dDogTm9uZSwKLSAgICAgICAgICAgIGRpc2FibGU6IGZhbHNlLAotICAgICAgICAgICAgc2NoZWR1 bGU6IHNjaGVkdWxlLmNsb25lKCksCi0gICAgICAgICAgICBvcHRpb25zOiBQcnVuZUpvYk9wdGlv bnMgewotICAgICAgICAgICAgICAgIGtlZXA6IGNvbmZpZy5rZWVwLmNsb25lKCksCi0gICAgICAg ICAgICAgICAgbWF4X2RlcHRoOiBOb25lLAotICAgICAgICAgICAgICAgIG5zOiBOb25lLAotICAg ICAgICAgICAgfSwKLSAgICAgICAgfQotICAgIH0pOworICAgIGxldCBtdXQgcHJ1bmVfam9iX2Nv bmZpZyA9IE5vbmU7CisgICAgaWYgIWRlZmF1bHRfcHJ1bmVfam9iX2V4aXN0aW5nKCZjb25maWcu bmFtZSk/IHsKKyAgICAgICAgcHJ1bmVfam9iX2NvbmZpZyA9IGNvbmZpZy5wcnVuZV9zY2hlZHVs ZS5hc19yZWYoKS5tYXAofHNjaGVkdWxlfCB7CisgICAgICAgICAgICBsZXQgbXV0IGlkID0gZm9y bWF0ISgiZGVmYXVsdC17fS17fSIsIGNvbmZpZy5uYW1lLCBVdWlkOjpnZW5lcmF0ZSgpKTsKKyAg ICAgICAgICAgIGlkLnRydW5jYXRlKDMyKTsKKworICAgICAgICAgICAgUHJ1bmVKb2JDb25maWcg eworICAgICAgICAgICAgICAgIGlkLAorICAgICAgICAgICAgICAgIHN0b3JlOiBjb25maWcubmFt ZS5jbG9uZSgpLAorICAgICAgICAgICAgICAgIGNvbW1lbnQ6IE5vbmUsCisgICAgICAgICAgICAg ICAgZGlzYWJsZTogZmFsc2UsCisgICAgICAgICAgICAgICAgc2NoZWR1bGU6IHNjaGVkdWxlLmNs b25lKCksCisgICAgICAgICAgICAgICAgb3B0aW9uczogUHJ1bmVKb2JPcHRpb25zIHsKKyAgICAg ICAgICAgICAgICAgICAga2VlcDogY29uZmlnLmtlZXAuY2xvbmUoKSwKKyAgICAgICAgICAgICAg ICAgICAgbWF4X2RlcHRoOiBOb25lLAorICAgICAgICAgICAgICAgICAgICBuczogTm9uZSwKKyAg ICAgICAgICAgICAgICB9LAorICAgICAgICAgICAgfQorICAgICAgICB9KTsKKyAgICB9CiAKICAg ICAvLyBjbGVhcmluZyBwcnVuZSBzZXR0aW5ncyBpbiB0aGUgZGF0YXN0b3JlIGNvbmZpZywgYXMg dGhleSBhcmUgbm93IGhhbmRsZWQgYnkgcHJ1bmUgam9icwogICAgIGxldCBjb25maWcgPSBEYXRh U3RvcmVDb25maWcgewpkaWZmIC0tZ2l0IGEvc3JjL2FwaTIvY29uZmlnL3BydW5lLnJzIGIvc3Jj L2FwaTIvY29uZmlnL3BydW5lLnJzCmluZGV4IGNlN2I4Y2U1NjVjZS4uZGFmYjk3ZTJmMWU1IDEw MDY0NAotLS0gYS9zcmMvYXBpMi9jb25maWcvcHJ1bmUucnMKKysrIGIvc3JjL2FwaTIvY29uZmln L3BydW5lLnJzCkBAIC03Nyw2ICs3NywyMSBAQCBwdWIgZm4gZG9fY3JlYXRlX3BydW5lX2pvYihj b25maWc6IFBydW5lSm9iQ29uZmlnKSAtPiBSZXN1bHQ8KCksIEVycm9yPiB7CiAgICAgT2soKCkp CiB9CiAKK3B1YiBmbiBkZWZhdWx0X3BydW5lX2pvYl9leGlzdGluZyhkYXRhc3RvcmU6ICZzdHIp IC0+IFJlc3VsdDxib29sLCBFcnJvcj4geworICAgIGxldCAoc2VjdGlvbl9jb25maWcsIF9kaWdl c3QpID0gcHJ1bmU6OmNvbmZpZygpPzsKKyAgICBpZiBzZWN0aW9uX2NvbmZpZworICAgICAgICAu c2VjdGlvbnMKKyAgICAgICAgLmtleXMoKQorICAgICAgICAuZmlsdGVyKHxzfCBzLnN0YXJ0c193 aXRoKCZmb3JtYXQhKCJkZWZhdWx0LXtkYXRhc3RvcmV9IikpKQorICAgICAgICAuY291bnQoKQor ICAgICAgICA+IDAKKyAgICB7CisgICAgICAgIE9rKHRydWUpCisgICAgfSBlbHNlIHsKKyAgICAg ICAgT2soZmFsc2UpCisgICAgfQorfQorCiAjW2FwaSgKICAgICBwcm90ZWN0ZWQ6IHRydWUsCiAg ICAgaW5wdXQ6IHsKLS0gCjIuMzkuNQoKCgpfX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fXwpwYnMtZGV2ZWwgbWFpbGluZyBsaXN0CnBicy1kZXZlbEBsaXN0cy5w cm94bW94LmNvbQpodHRwczovL2xpc3RzLnByb3htb3guY29tL2NnaS1iaW4vbWFpbG1hbi9saXN0 aW5mby9wYnMtZGV2ZWwK