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 C40AD1FF15C for ; Fri, 25 Jul 2025 14:14:47 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id AA91117830; Fri, 25 Jul 2025 14:16:05 +0200 (CEST) Date: Fri, 25 Jul 2025 14:15:29 +0200 From: Fabian =?iso-8859-1?q?Gr=FCnbichler?= To: Proxmox VE development discussion References: <20250725105109.54093-1-f.ebner@proxmox.com> In-Reply-To: <20250725105109.54093-1-f.ebner@proxmox.com> MIME-Version: 1.0 User-Agent: astroid/0.16.0 (https://github.com/astroidmail/astroid) Message-Id: <1753445470.v5oz7vpfnv.astroid@yuna.none> X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1753445728694 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.047 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] applied-series: [PATCH-SERIES qemu-server v2 0/8] blockdev and snapshot-as-volume-chain on LVM fixes 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="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: pve-devel-bounces@lists.proxmox.com Sender: "pve-devel" without the last patch, as discussed off-list - it's a bit involved, we'll see if we can find a better way to handle this, and for the current stop-gap measure the simple approach is good enough. added a FIXME instead so we don't forget. On July 25, 2025 12:50 pm, Fiona Ebner wrote: > Changes in v2: > * add missing check for qcow2 format for qemu-img convert > * add patch to improve File::stat mocking in tests > * add patch to re-use blockdev infrastructure for qemu-img case > > First part is fixing discard in combination with -blockdev. The option > needs to be set for the whole throttle->fmt->file chain to make it > work. > > Second part is fixing bug #6543, qcow2 can grow beyond what qemu-img > measure reports, because of fragmentation when the discard-no-unref > option is not used. > > There is a fix-6543 branch on my staff repo, should the patches > touching tests be messed up again because of the overly long line in > the expected test output. > > Fiona Ebner (8): > blockdev: helper to add common options > blockdev: fix discard > tests: image convert: avoid hard-coded VM ID in result > tests: image convert: properly set snapshot-as-volume-chain option > tests: image convert: add tests where storages with > 'snapshot-as-volume-chain' are the target > fix #6543: use qcow2 'discard-no-unref' option when using > snapshot-as-volume-chain > tests: cfg2cmd: improve mocking File::stat > image convert: re-use generate_drive_blockdev() > > src/PVE/QemuServer/Blockdev.pm | 36 +++++++--- > src/PVE/QemuServer/QemuImage.pm | 72 +++++++++++++++++++ > src/test/cfg2cmd/aio.conf.cmd | 28 ++++---- > src/test/cfg2cmd/bootorder-empty.conf.cmd | 6 +- > src/test/cfg2cmd/bootorder-legacy.conf.cmd | 6 +- > src/test/cfg2cmd/bootorder.conf.cmd | 6 +- > ...putype-icelake-client-deprecation.conf.cmd | 2 +- > .../cfg2cmd/efi-ovmf-without-efidisk.conf.cmd | 2 +- > src/test/cfg2cmd/efi-raw-template.conf.cmd | 2 +- > src/test/cfg2cmd/efi-raw.conf.cmd | 2 +- > .../cfg2cmd/efi-secboot-and-tpm-q35.conf.cmd | 2 +- > src/test/cfg2cmd/efi-secboot-and-tpm.conf.cmd | 2 +- > src/test/cfg2cmd/efidisk-on-rbd.conf.cmd | 2 +- > src/test/cfg2cmd/ide.conf.cmd | 2 +- > src/test/cfg2cmd/q35-ide.conf.cmd | 2 +- > .../q35-linux-hostpci-mapping.conf.cmd | 2 +- > .../q35-linux-hostpci-multifunction.conf.cmd | 2 +- > .../q35-linux-hostpci-template.conf.cmd | 4 +- > ...q35-linux-hostpci-x-pci-overrides.conf.cmd | 2 +- > src/test/cfg2cmd/q35-linux-hostpci.conf.cmd | 2 +- > src/test/cfg2cmd/q35-simple.conf.cmd | 2 +- > src/test/cfg2cmd/seabios_serial.conf.cmd | 2 +- > src/test/cfg2cmd/sev-es.conf.cmd | 2 +- > src/test/cfg2cmd/sev-std.conf.cmd | 2 +- > src/test/cfg2cmd/simple-backingchain.conf.cmd | 4 +- > src/test/cfg2cmd/simple-btrfs.conf.cmd | 8 +-- > src/test/cfg2cmd/simple-cifs.conf.cmd | 8 +-- > .../cfg2cmd/simple-disk-passthrough.conf.cmd | 4 +- > src/test/cfg2cmd/simple-lvm.conf.cmd | 8 +-- > src/test/cfg2cmd/simple-lvmthin.conf.cmd | 8 +-- > src/test/cfg2cmd/simple-rbd.conf.cmd | 16 ++--- > src/test/cfg2cmd/simple-virtio-blk.conf.cmd | 2 +- > .../cfg2cmd/simple-zfs-over-iscsi.conf.cmd | 8 +-- > src/test/cfg2cmd/simple1-template.conf.cmd | 4 +- > src/test/cfg2cmd/simple1.conf.cmd | 2 +- > src/test/run_config2command_tests.pl | 8 +-- > src/test/run_qemu_img_convert_tests.pl | 61 +++++++++++++++- > 37 files changed, 239 insertions(+), 94 deletions(-) > > -- > 2.47.2 > > > > _______________________________________________ > pve-devel mailing list > pve-devel@lists.proxmox.com > https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel > > > _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel