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 1A5B71FF173 for ; Mon, 11 Nov 2024 14:55:50 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 0CDB5C955; Mon, 11 Nov 2024 14:55:15 +0100 (CET) From: Fiona Ebner To: pve-devel@lists.proxmox.com Date: Mon, 11 Nov 2024 14:54:34 +0100 Message-Id: <20241111135436.82773-8-f.ebner@proxmox.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20241111135436.82773-1-f.ebner@proxmox.com> References: <20241111135436.82773-1-f.ebner@proxmox.com> MIME-Version: 1.0 X-SPAM-LEVEL: Spam detection results: 0 AWL -0.056 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: [pve-devel] [PATCH v4 qemu-server 7/9] fix #5440: vzdump: better cleanup fleecing images after hard errors X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Proxmox VE development discussion Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: pve-devel-bounces@lists.proxmox.com Sender: "pve-devel" QnkgcmVjb3JkaW5nIHRoZSBhbGxvY2F0ZWQgZmxlZWNpbmcgaW1hZ2VzIGluIHRoZSBWTSBjb25m aWcsIHRoZXkKYXJlIG5vdCBpbW1lZGlhdGVseSBvcnBoYW5lZCwgc2hvdWxkIGEgaGFyZCBlcnJv ciBvY2N1ciBkdXJpbmcK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BlcSAnaW5mbycpIHsKKwkJ cHJpbnQgIiRsaW5lXG4iOworCSAgICB9IGVsc2UgeworCQlsb2dfd2FybigkbGluZSk7CisJICAg IH0KKwl9OworICAgIH0KKworICAgIG15ICR2b2xpZHMgPSBbXTsKKyAgICBteSAkZmFpbGVkID0g W107CisKKyAgICAjIGRldGFjaCBhbnkgbGVmdC1vdmVycyBmcm9tIGEgcnVubmluZyBWTQorICAg IGlmIChQVkU6OlFlbXVTZXJ2ZXI6OkhlbHBlcnM6OnZtX3J1bm5pbmdfbG9jYWxseSgkdm1pZCkp IHsKKwlteSAkYmxvY2tfaW5mbyA9IG1vbl9jbWQoJHZtaWQsICJxdWVyeS1ibG9jayIpOworCWZv ciBteSAkaW5mbyAoJGJsb2NrX2luZm8tPkAqKSB7CisJICAgIG15ICRkZXZpY2VfaWQgPSAkaW5m by0+e2RldmljZX07CisJICAgIG5leHQgaWYgJGRldmljZV9pZCAhfiBtLy1mbGVlY2luZyQvOwor CisJICAgICRsb2dfZnVuYy0+KCdpbmZvJywgImRldGFjaGluZyAob2xkKSBmbGVlY2luZyBpbWFn ZSBmb3IgJyRkZXZpY2VfaWQnIik7CisJICAgICRkZXZpY2VfaWQgPX4gcy9eZHJpdmUtLy87ICMg cmUtYWRkZWQgYnkgcWVtdV9kcml2ZWRlbCgpCisJICAgIGV2YWwgeyBQVkU6OlFlbXVTZXJ2ZXI6 OnFlbXVfZHJpdmVkZWwoJHZtaWQsICRkZXZpY2VfaWQpIH07CisJICAgICRsb2dfZnVuYy0+KCd3 YXJuJywgImVycm9yIGRldGFjaGluZyAob2xkKSBmbGVlY2luZyBpbWFnZSAnJGRldmljZV9pZCcg LSAkQCIpIGlmICRAOworCX0KKyAgICB9CisKKyAgICBQVkU6OlFlbXVDb25maWctPmxvY2tfY29u ZmlnKCR2bWlkLCBzdWIgeworCW15ICRjb25mID0gUFZFOjpRZW11Q29uZmlnLT5sb2FkX2NvbmZp Zygkdm1pZCk7CisJaWYgKCRjb25mLT57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