qemu-img commit on Windows 10 fails
Commit fails. But failing seems to do no harm, because backing file is not modified.
Reproducible with Msys2/Qemu6.0.0 and https://qemu.weilnetz.de/w64/qemu-w64-setup-20210505.exe (Qemu6.0.0)
# Create
$ qemu-img create -f qcow2 testbacking.qcow2 1G
Formatting 'testbacking.qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=1073741824 lazy_refcounts=off refcount_bits=16
$ qemu-img create -F qcow2 -b testbacking.qcow2 -f qcow2 test.qcow2
Formatting 'test.qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=1073741824 backing_file=testbacking.qcow2 backing_fmt=qcow2 lazy_refcounts=off refcount_bits=16
# Use
$ qemu-system-x86_64 -accel whpx -hda test.qcow2 -cdrom Download/openSUSE-Leap-15.3-GNOME-Live-x86_64-Media.iso -m 2G
WHPX: setting APIC emulation mode in the hypervisor
Windows Hypervisor Platform accelerator is operational
whpx: injection failed, MSI (0, 0) delivery: 0, dest_mode: 0, trigger mode: 0, vector: 0, lost (c0350005)
# Commit
$ qemu-img commit test.qcow2
D:\msys64\mingw64\lib\qemu\qemu-img.exe: Block format 'file' used by node '#block221' does not support reopening files
$ echo $?
1
$ ls -l
total 379598
drwxr-xr-x 1 User Kein 0 Jun 7 22:53 Download
-rw-r--r-- 1 User Kein 388431872 Jun 15 05:30 test.qcow2
-rw-r--r-- 1 User Kein 197120 Jun 15 05:14 testbacking.qcow2
Edited by Helge Konetzka