pve-qemu-qoup/debian
Fabian Ebner 2bf61c3eb6 vma: create: register all streams before entering coroutines
Otherwise, the header might already get written by a coroutine and
registering further streams will fail after that.

Also adds a missing g_list_free call for the other GList that's used.

Reported in the community forum:
https://forum.proxmox.com/threads/104744/

Reproducer script (increase beyond 30 if the issue isn't triggered yet):
> #!/usr/bin/perl
>
> my $dir = "./vma-create-bug";
> mkdir $dir;
>
> my $archive_path = "$dir/vzdump-qemu-104-2202_02_02-00_00_00.vma";
> unlink $archive_path;
>
> my $cmd = "vma create $archive_path -v";
> for (my $i = 0; $i < 30; $i++) {
>   system("truncate -s 1M $dir/drive-virtio$i.img");
>   $cmd .= " drive-virtio$i=$dir/drive-virtio$i.img";
> }
> system($cmd);

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2022-02-14 15:38:58 +01:00
..
patches vma: create: register all streams before entering coroutines 2022-02-14 15:38:58 +01:00
source build: use 3.0 source format 2018-03-14 14:18:17 +01:00
changelog bump version to 6.1.1-1 2022-01-13 10:57:48 +01:00
compat Bump dephelper compatibility level to 10 2017-10-16 14:05:22 +02:00
control update and rebase to QEMU v6.1.0 2021-10-11 15:13:26 +02:00
copyright import stable-4 build files 2017-04-05 11:39:09 +02:00
docs import stable-4 build files 2017-04-05 11:39:09 +02:00
kvm-ifdown import stable-4 build files 2017-04-05 11:39:09 +02:00
kvm-ifup update to 2.9.0-rc2 build files 2017-04-05 11:40:20 +02:00
Logo.bmp import stable-4 build files 2017-04-05 11:39:09 +02:00
OVMF_CODE-pure-efi.fd import stable-4 build files 2017-04-05 11:39:09 +02:00
OVMF_README.txt import stable-4 build files 2017-04-05 11:39:09 +02:00
OVMF_VARS-pure-efi.fd import stable-4 build files 2017-04-05 11:39:09 +02:00
parse-cpu-flags.pl Write recognized CPUID flags into static file 2019-10-17 13:39:21 +02:00
parse-machines.pl machine list: save as JSON 2021-03-05 16:21:30 +01:00
pve-qemu-kvm.install Update to QEMU 5.2 2021-02-12 10:20:01 +01:00
pve-qemu-kvm.links build and include qemu-system-aarch64 2019-04-19 09:53:44 +02:00
pve-qemu-kvm.lintian-overrides add lintian overrides for shipped strange BLOBs 2019-05-22 17:59:27 +02:00
rules enable io-uring support in QEMU builds 2021-06-21 09:56:06 +02:00