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 560531FF173 for ; Tue, 15 Oct 2024 09:30:36 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 5B8ADFDF6; Tue, 15 Oct 2024 09:31:08 +0200 (CEST) Message-ID: Date: Tue, 15 Oct 2024 09:30:33 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: Proxmox Backup Server development discussion , =?UTF-8?Q?Fabian_Gr=C3=BCnbichler?= References: <20240912143322.548839-1-c.ebner@proxmox.com> <20240912143322.548839-34-c.ebner@proxmox.com> <1728638968.w8kq9gw4fv.astroid@yuna.none> Content-Language: en-US, de-DE From: Christian Ebner In-Reply-To: <1728638968.w8kq9gw4fv.astroid@yuna.none> X-SPAM-LEVEL: Spam detection results: 0 AWL -0.375 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_ASCII_DIVIDERS 0.8 Email that uses ascii formatting dividers and possible spam tricks 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: Re: [pbs-devel] [PATCH v3 proxmox-backup 33/33] server: sync job: use delete stats provided by the api 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-Transfer-Encoding: base64 Content-Type: text/plain; charset="utf-8"; Format="flowed" Errors-To: pbs-devel-bounces@lists.proxmox.com Sender: "pbs-devel" T24gMTAvMTEvMjQgMTE6MzIsIEZhYmlhbiBHcsO8bmJp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gIH0KPj4gLQo+PiAtICAgICAgICAgICAgbGV0IG11dCBjb3VudF9h ZnRlciA9IG1hdGNoIGZldGNoX3RhcmdldF9ncm91cHMocGFyYW1zLCBuYW1lc3BhY2UpLmF3YWl0 IHsKPj4gLSAgICAgICAgICAgICAgICBPayhzbmFwc2hvdHMpID0+IHNuYXBzaG90cy5sZW4oKSwK Pj4gLSAgICAgICAgICAgICAgICBFcnIoX2VycikgPT4gMCwgLy8gaWdub3JlIGVycm9ycwo+PiAt ICAgICAgICAgICAgfTsKPj4gLQo+PiAtICAgICAgICAgICAgbGV0IGRlbGV0ZWRfZ3JvdXBzID0g aWYgY291bnRfYWZ0ZXIgPiAwIHsKPj4gLSAgICAgICAgICAgICAgICBpbmZvISgia2VwdCBzb21l IHByb3RlY3RlZCBzbmFwc2hvdHMgb2YgZ3JvdXAgJ3t0YXJnZXRfZ3JvdXB9JyIpOwo+PiAtICAg ICAgICAgICAgICAgIDAKPj4gLSAgICAgICAgICAgIH0gZWxzZSB7Cj4+IC0gICAgICAgICAgICAg ICAgMQo+PiAtICAgICAgICAgICAgfTsKPj4gLQo+PiAtICAgICAgICAgICAgaWYgY291bnRfYWZ0 ZXIgPiBjb3VudF9iZWZvcmUgewo+PiAtICAgICAgICAgICAgICAgIGNvdW50X2FmdGVyID0gY291 bnRfYmVmb3JlOwo+PiArICAgICAgICAgICAgbWF0Y2ggcmVtb3ZlX3RhcmdldF9ncm91cChwYXJh bXMsIG5hbWVzcGFjZSwgJnRhcmdldF9ncm91cCkuYXdhaXQgewo+PiArICAgICAgICAgICAgICAg IE9rKGRlbGV0ZV9zdGF0cykgPT4gewo+PiArICAgICAgICAgICAgICAgICAgICBpZiBkZWxldGVf c3RhdHMucHJvdGVjdGVkX3NuYXBzaG90cygpID4gMCB7Cj4+ICsgICAgICAgICAgICAgICAgICAg ICAgICBpbmZvISgKPj4gKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAia2VwdCB7cHJvdGVj dGVkX2NvdW50fSBwcm90ZWN0ZWQgc25hcHNob3RzIG9mIGdyb3VwICd7dGFyZ2V0X2dyb3VwfSci LAo+PiArICAgICAgICAgICAgICAgICAgICAgICAgICAgIHByb3RlY3RlZF9jb3VudCA9IGRlbGV0 ZV9zdGF0cy5wcm90ZWN0ZWRfc25hcHNob3RzKCksCj4+ICsgICAgICAgICAgICAgICAgICAgICAg ICApOwo+IAo+IHNob3VsZCB0aGlzIGJlIGEgd2FybmluZz8gdGhpcyBraW5kIG9mIGJyZWFrcyB0 aGUgZXhwZWN0YXRpb25zIG9mCj4gc3luY2luZyBhZnRlciBhbGwuLgoKT0ssIHdpbGwgYmUgYSB3 YXJuaW5nIGluIHRoZSBuZXh0IHZlcnNpb24gb2YgdGhlIHBhdGNoZXMuCgo+IGFuZCB3b3VsZG4n dCB3ZSBhbHNvIG5lZWQgYSBzaW1pbGFyIGNoYW5nZSBmb3IgcmVtb3ZpbmcgbmFtZXNwYWNlcz8K ClJpZ2h0LCB0aGF0IHdhcyBpbmRlZWQgbWlzc2luZyBhbmQgd2lsbCBiZSBhZGRlZCBhcyB3ZWxs LgoKPj4gKyAgICAgICAgICAgICAgICAgICAgfQo+PiArICAgICAgICAgICAgICAgICAgICBzdGF0 cy5hZGQoU3luY1N0YXRzOjpmcm9tKFJlbW92ZWRWYW5pc2hlZFN0YXRzIHsKPj4gKyAgICAgICAg ICAgICAgICAgICAgICAgIHNuYXBzaG90czogZGVsZXRlX3N0YXRzLnJlbW92ZWRfc25hcHNob3Rz KCksCj4+ICsgICAgICAgICAgICAgICAgICAgICAgICBncm91cHM6IGRlbGV0ZV9zdGF0cy5yZW1v dmVkX2dyb3VwcygpLAo+PiArICAgICAgICAgICAgICAgICAgICAgICAgbmFtZXNwYWNlczogMCwK Pj4gKyAgICAgICAgICAgICAgICAgICAgfSkpOwo+PiArICAgICAgICAgICAgICAgIH0KPj4gKyAg ICAgICAgICAgICAgICBFcnIoZXJyKSA9PiB7Cj4+ICsgICAgICAgICAgICAgICAgICAgIGluZm8h KCJmYWlsZWQgdG8gZGVsZXRlIHZhbmlzaGVkIGdyb3VwIC0ge2Vycn0iKTsKPj4gKyAgICAgICAg ICAgICAgICAgICAgZXJyb3JzID0gdHJ1ZTsKPj4gKyAgICAgICAgICAgICAgICAgICAgY29udGlu dWU7Cj4+ICsgICAgICAgICAgICAgICAgfQo+PiAgICAgICAgICAgICAgIH0KPj4gLQo+PiAtICAg ICAgICAgICAgc3RhdHMuYWRkKFN5bmNTdGF0czo6ZnJvbShSZW1vdmVkVmFuaXNoZWRTdGF0cyB7 Cj4+IC0gICAgICAgICAgICAgICAgc25hcHNob3RzOiBjb3VudF9iZWZvcmUgLSBjb3VudF9hZnRl ciwKPj4gLSAgICAgICAgICAgICAgICBncm91cHM6IGRlbGV0ZWRfZ3JvdXBzLAo+PiAtICAgICAg ICAgICAgICAgIG5hbWVzcGFjZXM6IDAsCj4+IC0gICAgICAgICAgICB9KSk7Cj4+ICAgICAgICAg ICB9Cj4+ICAgICAgIH0KPj4gICAKPj4gLS0gCj4+IDIuMzkuMgo+Pgo+Pgo+Pgo+PiBfX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fXwo+PiBwYnMtZGV2ZWwgbWFp bGluZyBsaXN0Cj4+IHBicy1kZXZlbEBsaXN0cy5wcm94bW94LmNvbQo+PiBodHRwczovL2xpc3Rz LnByb3htb3guY29tL2NnaS1iaW4vbWFpbG1hbi9saXN0aW5mby9wYnMtZGV2ZWwKPj4KPj4KPj4K PiAKPiAKPiBfX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fXwo+ IHBicy1kZXZlbCBtYWlsaW5nIGxpc3QKPiBwYnMtZGV2ZWxAbGlzdHMucHJveG1veC5jb20KPiBo dHRwczovL2xpc3RzLnByb3htb3guY29tL2NnaS1iaW4vbWFpbG1hbi9saXN0aW5mby9wYnMtZGV2 ZWwKPiAKPiAKCgoKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X18KcGJzLWRldmVsIG1haWxpbmcgbGlzdApwYnMtZGV2ZWxAbGlzdHMucHJveG1veC5jb20KaHR0 cHM6Ly9saXN0cy5wcm94bW94LmNvbS9jZ2ktYmluL21haWxtYW4vbGlzdGluZm8vcGJzLWRldmVs Cg==