]> git.proxmox.com Git - proxmox-backup-qemu.git/commit
use AsyncIndexReader for read_image_at
authorStefan Reiter <s.reiter@proxmox.com>
Wed, 22 Jul 2020 13:56:24 +0000 (15:56 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 22 Jul 2020 18:28:19 +0000 (20:28 +0200)
commit8e63f0386d3e742fa05732cfdc64798987575bf3
tree99de73061568e79eeee6e032f81e29e3bf1e216c
parentedd88ae9024ff33577a1073bc60f221305fcd1f8
use AsyncIndexReader for read_image_at

Replaces the removed BufferedFixedReader and makes the API fully async
(not block_in_place or block_on which could break with many requests at
once).

A tokio::sync::Mutex needs to be used for exclusive access, since a
regular one would not work with async/await calls.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
src/restore.rs