]> git.proxmox.com Git - pve-qemu.git/commit - debian/patches/pve/0029-PVE-Backup-pbs-restore-new-command-to-restore-from-p.patch
pbs-restore: unref/close target block backend
authorStefan Reiter <s.reiter@proxmox.com>
Wed, 24 Feb 2021 13:34:47 +0000 (14:34 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 24 Feb 2021 18:02:07 +0000 (19:02 +0100)
commit4194124719341d2d4ad1735b57da30879946b646
tree9446fd06b0c521295a53993fa5b9ef905bb9846b
parent42a90c4e1cb7435f9d877eb7bfd03de509fd1f8f
pbs-restore: unref/close target block backend

Use blk_unref to drop the last reference, which will close the block
backend and flush all caches and outstanding writes.

This is especially important for restoring to Ceph, as the userspace
librbd caches will not be flushed if the application exits immediately,
leading to potentially incomplete restores.

Reported-by: Eneko Lacunza <elacunza@binovo.es>
Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
debian/patches/pve/0029-PVE-Backup-pbs-restore-new-command-to-restore-from-p.patch
debian/patches/pve/0039-PVE-fixup-pbs-restore-API.patch