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 36F631FF15F for ; Mon, 4 Nov 2024 13:56:55 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 3C6B9C47A; Mon, 4 Nov 2024 13:57:04 +0100 (CET) From: Christian Ebner To: pbs-devel@lists.proxmox.com Date: Mon, 4 Nov 2024 13:56:14 +0100 Message-Id: <20241104125614.162491-2-c.ebner@proxmox.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20241104125614.162491-1-c.ebner@proxmox.com> References: <20241104125614.162491-1-c.ebner@proxmox.com> MIME-Version: 1.0 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.029 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 2/2] sync: pull: simplify logic for source snapshot filtering 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" RGVjb3VwbGUgdGhlIGFjdHVhbCBmaWx0ZXIgbG9naWMgZnJvbSB0aGUgc2tpcCByZWFzb24gb3V0 cHV0IGxvZ2ljIGJ5CnB1bGxpbmcgdGhlIGxhdHRlciBvdXQgb2YgdGhlIGZpbHRlciBjbG9zdWUu CgpNYWtlcyB0aGUgZmlsdGVyaW5nIGxvZ2ljIG1vcmUgaW50dWl0aXZlLgoKUmV2aWV3ZWQtYnk6 IEZhYmlhbiBHcsO8bmJpY2hsZXIgPGYuZ3J1ZW5iaWNobGVyQHByb3htb3guY29tPgpTaWduZWQt b2ZmLWJ5OiBDaHJpc3RpYW4gRWJuZXIgPGMuZWJuZXJAcHJveG1veC5jb20+Ci0tLQpjaGFuZ2Vz IHNpbmNlIHZlcnNpb24gMToKLSBubyBjaGFuZ2VzCgogc3JjL3NlcnZlci9wdWxsLnJzIHwgMTUg KysrKysrKysrLS0tLS0tCiAxIGZpbGUgY2hhbmdlZCwgOSBpbnNlcnRpb25zKCspLCA2IGRlbGV0 aW9ucygtKQoKZGlmZiAtLWdpdCBhL3NyYy9zZXJ2ZXIvcHVsbC5ycyBiL3NyYy9zZXJ2ZXIvcHVs bC5ycwppbmRleCA4ZDg0NjFjYjIuLjBhZmIxNmJjMCAxMDA2NDQKLS0tIGEvc3JjL3NlcnZlci9w dWxsLnJzCisrKyBiL3NyYy9zZXJ2ZXIvcHVsbC5ycwpAQCAtNTMzLDIzICs1MzMsMjYgQEAgYXN5 bmMgZm4gcHVsbF9ncm91cCgKICAgICAgICAgICAgIGlmIGxhc3Rfc3luY190aW1lID4gZGlyLnRp bWUgewogICAgICAgICAgICAgICAgIGFscmVhZHlfc3luY2VkX3NraXBfaW5mby51cGRhdGUoZGly LnRpbWUpOwogICAgICAgICAgICAgICAgIHJldHVybiBmYWxzZTsKLSAgICAgICAgICAgIH0gZWxz ZSBpZiBhbHJlYWR5X3N5bmNlZF9za2lwX2luZm8uY291bnQgPiAwIHsKLSAgICAgICAgICAgICAg ICBpbmZvISgie2FscmVhZHlfc3luY2VkX3NraXBfaW5mb30iKTsKLSAgICAgICAgICAgICAgICBh bHJlYWR5X3N5bmNlZF9za2lwX2luZm8ucmVzZXQoKTsKICAgICAgICAgICAgIH0KIAogICAgICAg ICAgICAgaWYgcG9zIDwgY3V0b2ZmICYmIGxhc3Rfc3luY190aW1lICE9IGRpci50aW1lIHsKICAg ICAgICAgICAgICAgICB0cmFuc2Zlcl9sYXN0X3NraXBfaW5mby51cGRhdGUoZGlyLnRpbWUpOwog ICAgICAgICAgICAgICAgIHJldHVybiBmYWxzZTsKLSAgICAgICAgICAgIH0gZWxzZSBpZiB0cmFu c2Zlcl9sYXN0X3NraXBfaW5mby5jb3VudCA+IDAgewotICAgICAgICAgICAgICAgIGluZm8hKCJ7 dHJhbnNmZXJfbGFzdF9za2lwX2luZm99Iik7Ci0gICAgICAgICAgICAgICAgdHJhbnNmZXJfbGFz dF9za2lwX2luZm8ucmVzZXQoKTsKICAgICAgICAgICAgIH0KICAgICAgICAgICAgIHRydWUKICAg ICAgICAgfSkKICAgICAgICAgLm1hcCh8KF8sIGRpcil8IGRpcikKICAgICAgICAgLmNvbGxlY3Qo KTsKIAorICAgIGlmIGFscmVhZHlfc3luY2VkX3NraXBfaW5mby5jb3VudCA+IDAgeworICAgICAg ICBpbmZvISgie2FscmVhZHlfc3luY2VkX3NraXBfaW5mb30iKTsKKyAgICAgICAgYWxyZWFkeV9z eW5jZWRfc2tpcF9pbmZvLnJlc2V0KCk7CisgICAgfQorICAgIGlmIHRyYW5zZmVyX2xhc3Rfc2tp cF9pbmZvLmNvdW50ID4gMCB7CisgICAgICAgIGluZm8hKCJ7dHJhbnNmZXJfbGFzdF9za2lwX2lu Zm99Iik7CisgICAgICAgIHRyYW5zZmVyX2xhc3Rfc2tpcF9pbmZvLnJlc2V0KCk7CisgICAgfQor CiAgICAgLy8gc3RhcnQgd2l0aCA2NTUzNiBjaHVua3MgKHVwIHRvIDI1NiBHaUIpCiAgICAgbGV0 IGRvd25sb2FkZWRfY2h1bmtzID0gQXJjOjpuZXcoTXV0ZXg6Om5ldyhIYXNoU2V0Ojp3aXRoX2Nh cGFjaXR5KDEwMjQgKiA2NCkpKTsKIAotLSAKMi4zOS41CgoKCl9fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fCnBicy1kZXZlbCBtYWlsaW5nIGxpc3QKcGJzLWRl dmVsQGxpc3RzLnByb3htb3guY29tCmh0dHBzOi8vbGlzdHMucHJveG1veC5jb20vY2dpLWJpbi9t YWlsbWFuL2xpc3RpbmZvL3Bicy1kZXZlbAo=