]> git.proxmox.com Git - qemu-server.git/commit
avoid list context for volume_size_info calls
authorFiona Ebner <f.ebner@proxmox.com>
Tue, 21 Mar 2023 09:17:58 +0000 (10:17 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 21 Mar 2023 09:37:40 +0000 (10:37 +0100)
commitefa3aa24963a8e3fd2639fa6129393da0686121f
tree2705f8262e13dc1d7e053dab0bf10d2d0447b418
parentc3a05d441c1956682f6fd947a14007508b668965
avoid list context for volume_size_info calls

With the recent pve-storage commit d70d814 ("api: fix get content call response
type for RBD/ZFS/iSCSI volumes"), the volume_size_info call for RBD in
list context is much slower than before (from a quick test, about twice as long
without snapshots, even longer with snapshots and untested, but when using an
external cluster with image not having the fast-diff feature, it should be worse
still) and thus increases the likelihood to run into timeouts here.

None of the callers here actually need the more expensive call, so just
avoid calling in list context.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
PVE/QemuServer.pm
PVE/VZDump/QemuServer.pm