pve-qemu-qoup/debian/patches/pve
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
..
0001-PVE-Config-block-file-change-locking-default-to-off.patch update submodule and patches to 6.1.1 2022-01-13 10:56:39 +01:00
0002-PVE-Config-Adjust-network-script-path-to-etc-kvm.patch update and rebase to QEMU v6.1.0 2021-10-11 15:13:26 +02:00
0003-PVE-Config-set-the-CPU-model-to-kvm64-32-instead-of-.patch update submodule and patches to 6.1.1 2022-01-13 10:56:39 +01:00
0004-PVE-Config-ui-spice-default-to-pve-certificates.patch update and rebase to QEMU v6.1.0 2021-10-11 15:13:26 +02:00
0005-PVE-Config-glusterfs-no-default-logfile-if-daemonize.patch drop patch force-disabling smm 2021-08-24 11:19:05 +02:00
0006-PVE-Config-rbd-block-rbd-disable-rbd_cache_writethro.patch update and rebase to QEMU v6.1.0 2021-10-11 15:13:26 +02:00
0007-PVE-Up-qmp-add-get_link_status.patch update and rebase to QEMU v6.1.0 2021-10-11 15:13:26 +02:00
0008-PVE-Up-glusterfs-allow-partial-reads.patch drop patch force-disabling smm 2021-08-24 11:19:05 +02:00
0009-PVE-Up-qemu-img-return-success-on-info-without-snaps.patch update and rebase to QEMU v6.1.0 2021-10-11 15:13:26 +02:00
0010-PVE-Up-qemu-img-dd-add-osize-and-read-from-to-stdin-.patch update submodule and patches to 6.1.1 2022-01-13 10:56:39 +01:00
0011-PVE-Up-qemu-img-dd-add-isize-parameter.patch update and rebase to QEMU v6.1.0 2021-10-11 15:13:26 +02:00
0012-PVE-Up-qemu-img-dd-add-n-skip_create.patch update and rebase to QEMU v6.1.0 2021-10-11 15:13:26 +02:00
0013-PVE-virtio-balloon-improve-query-balloon.patch update submodule and patches to 6.1.1 2022-01-13 10:56:39 +01:00
0014-PVE-qapi-modify-query-machines.patch update and rebase to QEMU v6.1.0 2021-10-11 15:13:26 +02:00
0015-PVE-qapi-modify-spice-query.patch update submodule and patches to 6.1.1 2022-01-13 10:56:39 +01:00
0016-PVE-add-savevm-async-for-background-state-snapshots.patch update submodule and patches to 6.1.1 2022-01-13 10:56:39 +01:00
0017-PVE-add-optional-buffer-size-to-QEMUFile.patch update submodule and patches to 6.1.1 2022-01-13 10:56:39 +01:00
0018-PVE-block-add-the-zeroinit-block-driver-filter.patch update and rebase to QEMU v6.1.0 2021-10-11 15:13:26 +02:00
0019-PVE-Add-dummy-id-command-line-parameter.patch update and rebase to QEMU v6.1.0 2021-10-11 15:13:26 +02:00
0020-PVE-Config-Revert-target-i386-disable-LINT0-after-re.patch update and rebase to QEMU v6.1.0 2021-10-11 15:13:26 +02:00
0021-PVE-Up-Config-file-posix-make-locking-optiono-on-cre.patch update submodule and patches to 6.1.1 2022-01-13 10:56:39 +01:00
0022-PVE-monitor-disable-oob-capability.patch update submodule and patches to 6.1.1 2022-01-13 10:56:39 +01:00
0023-PVE-Compat-4.0-used-balloon-qemu-4-0-config-size-fal.patch update submodule and patches to 6.1.1 2022-01-13 10:56:39 +01:00
0024-PVE-Allow-version-code-in-machine-type.patch update submodule and patches to 6.1.1 2022-01-13 10:56:39 +01:00
0025-PVE-Backup-add-vma-backup-format-code.patch vma: create: register all streams before entering coroutines 2022-02-14 15:38:58 +01:00
0026-PVE-Backup-add-backup-dump-block-driver.patch update submodule and patches to 6.1.1 2022-01-13 10:56:39 +01:00
0027-PVE-Backup-proxmox-backup-patches-for-qemu.patch update submodule and patches to 6.1.1 2022-01-13 10:56:39 +01:00
0028-PVE-Backup-pbs-restore-new-command-to-restore-from-p.patch update submodule and patches to 6.1.1 2022-01-13 10:56:39 +01:00
0029-PVE-Backup-Add-dirty-bitmap-tracking-for-incremental.patch update submodule and patches to 6.1.1 2022-01-13 10:56:39 +01:00
0030-PVE-various-PBS-fixes.patch update submodule and patches to 6.1.1 2022-01-13 10:56:39 +01:00
0031-PVE-Add-PBS-block-driver-to-map-backup-archives-into.patch update submodule and patches to 6.1.1 2022-01-13 10:56:39 +01:00
0032-PVE-add-query_proxmox_support-QMP-command.patch update and rebase to QEMU v6.1.0 2021-10-11 15:13:26 +02:00
0033-PVE-add-query-pbs-bitmap-info-QMP-call.patch update submodule and patches to 6.1.1 2022-01-13 10:56:39 +01:00
0034-PVE-redirect-stderr-to-journal-when-daemonized.patch update submodule and patches to 6.1.1 2022-01-13 10:56:39 +01:00
0035-PVE-Add-sequential-job-transaction-support.patch update submodule and patches to 6.1.1 2022-01-13 10:56:39 +01:00
0036-PVE-Backup-Use-a-transaction-to-synchronize-job-stat.patch update submodule and patches to 6.1.1 2022-01-13 10:56:39 +01:00
0037-PVE-Backup-Don-t-block-on-finishing-and-cleanup-crea.patch update submodule and patches to 6.1.1 2022-01-13 10:56:39 +01:00
0038-PVE-Migrate-dirty-bitmap-state-via-savevm.patch update submodule and patches to 6.1.1 2022-01-13 10:56:39 +01:00
0039-migration-block-dirty-bitmap-migrate-other-bitmaps-e.patch update submodule and patches to 6.1.1 2022-01-13 10:56:39 +01:00
0040-PVE-fall-back-to-open-iscsi-initiatorname.patch update submodule and patches to 6.1.1 2022-01-13 10:56:39 +01:00
0041-PVE-Use-coroutine-QMP-for-backup-cancel_backup.patch update submodule and patches to 6.1.1 2022-01-13 10:56:39 +01:00
0042-PBS-add-master-key-support.patch update submodule and patches to 6.1.1 2022-01-13 10:56:39 +01:00
0043-PVE-block-pbs-fast-path-reads-without-allocation-if-.patch update submodule and patches to 6.1.1 2022-01-13 10:56:39 +01:00
0044-PVE-block-stream-increase-chunk-size.patch update submodule and patches to 6.1.1 2022-01-13 10:56:39 +01:00
0045-block-io-accept-NULL-qiov-in-bdrv_pad_request.patch update submodule and patches to 6.1.1 2022-01-13 10:56:39 +01:00
0046-block-add-alloc-track-driver.patch update submodule and patches to 6.1.1 2022-01-13 10:56:39 +01:00
0047-PVE-whitelist-invalid-QAPI-names-for-backwards-compa.patch update submodule and patches to 6.1.1 2022-01-13 10:56:39 +01:00
0048-PVE-savevm-async-register-yank-before-migration_inco.patch update submodule and patches to 6.1.1 2022-01-13 10:56:39 +01:00