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 2B2BC1FF168 for ; Tue, 26 Nov 2024 10:55:04 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id C078F2BA84; Tue, 26 Nov 2024 10:55:03 +0100 (CET) From: Gabriel Goller To: pbs-devel@lists.proxmox.com Date: Tue, 26 Nov 2024 10:54:28 +0100 Message-Id: <20241126095428.101682-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 URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [prune.rs, datastore.rs] Subject: [pbs-devel] [PATCH proxmox-backup v3] reuse-datastore: avoid creating another 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" SWYgYSBkYXRhc3RvcmUgd2l0aCBhIHBydW5lIGpvYiBpcyByZW1vdmVkLCB0aGUgcHJ1bmUgam9i IGlzIHByZXNlcnZlcmQKYXMgaXQgaXMgc3RvcmVkIGluIC9ldGMvcHJveG1veC1iYWN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RlbGV0ZV92ZXJpZmljYXRpb25f am9iOwpAQCAtMjA0LDIzICsyMDQsMjYgQEAgcHViIGZuIGNyZWF0ZV9kYXRhc3RvcmUoCiAgICAg bGV0IGF1dGhfaWQ6IEF1dGhpZCA9IHJwY2Vudi5nZXRfYXV0aF9pZCgpLnVud3JhcCgpLnBhcnNl KCk/OwogICAgIGxldCB0b19zdGRvdXQgPSBycGNlbnYuZW52X3R5cGUoKSA9PSBScGNFbnZpcm9u bWVudFR5cGU6OkNMSTsKIAotICAgIGxldCBwcnVuZV9qb2JfY29uZmlnID0gY29uZmlnLnBydW5l X3NjaGVkdWxlLmFzX3JlZigpLm1hcCh8c2NoZWR1bGV8IHsKLSAgICAgICAgbGV0IG11dCBpZCA9 IGZvcm1hdCEoImRlZmF1bHQte30te30iLCBjb25maWcubmFtZSwgVXVpZDo6Z2VuZXJhdGUoKSk7 Ci0gICAgICAgIGlkLnRydW5jYXRlKDMyKTsKLQotICAgICAgICBQcnVuZUpvYkNvbmZpZyB7Ci0g ICAgICAgICAgICBpZCwKLSAgICAgICAgICAgIHN0b3JlOiBjb25maWcubmFtZS5jbG9uZSgpLAot ICAgICAgICAgICAgY29tbWVudDogTm9uZSwKLSAgICAgICAgICAgIGRpc2FibGU6IGZhbHNlLAot ICAgICAgICAgICAgc2NoZWR1bGU6IHNjaGVkdWxlLmNsb25lKCksCi0gICAgICAgICAgICBvcHRp b25zOiBQcnVuZUpvYk9wdGlvbnMgewotICAgICAgICAgICAgICAgIGtlZXA6IGNvbmZpZy5rZWVw LmNsb25lKCksCi0gICAgICAgICAgICAgICAgbWF4X2RlcHRoOiBOb25lLAotICAgICAgICAgICAg ICAgIG5zOiBOb25lLAotICAgICAgICAgICAgfSwKLSAgICAgICAgfQotICAgIH0pOworICAgIGxl dCBtdXQgcHJ1bmVfam9iX2NvbmZpZyA9IE5vbmU7CisgICAgaWYgY29uZmlnLmtlZXAua2VlcHNf c29tZXRoaW5nKCkgfHwgIWhhc19wcnVuZV9qb2IoJmNvbmZpZy5uYW1lKT8geworICAgICAgICBw cnVuZV9qb2JfY29uZmlnID0gY29uZmlnLnBydW5lX3NjaGVkdWxlLmFzX3JlZigpLm1hcCh8c2No ZWR1bGV8IHsKKyAgICAgICAgICAgIGxldCBtdXQgaWQgPSBmb3JtYXQhKCJkZWZhdWx0LXt9LXt9 IiwgY29uZmlnLm5hbWUsIFV1aWQ6OmdlbmVyYXRlKCkpOworICAgICAgICAgICAgaWQudHJ1bmNh dGUoMzIpOworCisgICAgICAgICAgICBQcnVuZUpvYkNvbmZpZyB7CisgICAgICAgICAgICAgICAg aWQsCisgICAgICAgICAgICAgICAgc3RvcmU6IGNvbmZpZy5uYW1lLmNsb25lKCksCisgICAgICAg ICAgICAgICAgY29tbWVudDogTm9uZSwKKyAgICAgICAgICAgICAgICBkaXNhYmxlOiBmYWxzZSwK KyAgICAgICAgICAgICAgICBzY2hlZHVsZTogc2NoZWR1bGUuY2xvbmUoKSwKKyAgICAgICAgICAg ICAgICBvcHRpb25zOiBQcnVuZUpvYk9wdGlvbnMgeworICAgICAgICAgICAgICAgICAgICBrZWVw OiBjb25maWcua2VlcC5jbG9uZSgpLAorICAgICAgICAgICAgICAgICAgICBtYXhfZGVwdGg6IE5v bmUsCisgICAgICAgICAgICAgICAgICAgIG5zOiBOb25lLAorICAgICAgICAgICAgICAgIH0sCisg ICAgICAgICAgICB9CisgICAgICAgIH0pOworICAgIH0KIAogICAgIC8vIGNsZWFyaW5nIHBydW5l IHNldHRpbmdzIGluIHRoZSBkYXRhc3RvcmUgY29uZmlnLCBhcyB0aGV5IGFyZSBub3cgaGFuZGxl ZCBieSBwcnVuZSBqb2JzCiAgICAgbGV0IGNvbmZpZyA9IERhdGFTdG9yZUNvbmZpZyB7CmRpZmYg LS1naXQgYS9zcmMvYXBpMi9jb25maWcvcHJ1bmUucnMgYi9zcmMvYXBpMi9jb25maWcvcHJ1bmUu cnMKaW5kZXggY2U3YjhjZTU2NWNlLi5iNDMzYzI0OGFj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