]> xenbits.xensource.com Git - libvirt.git/commit
Replace virDomainDiskInsertPreAlloced by virDomainDiskInsert
authorPeter Krempa <pkrempa@redhat.com>
Tue, 18 May 2021 14:00:48 +0000 (16:00 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 24 May 2021 18:38:08 +0000 (20:38 +0200)
commit7c67afce652f90a8d29166419b07a6dee6bfccfc
treeda327d519ddbb4f81c910c863b7a279935b2b31c
parent3df66f27a606c5c0f27958edf7bfaaf7dcc71264
Replace virDomainDiskInsertPreAlloced by virDomainDiskInsert

Pre-extending the disk array size is pointless nowadays since we've
switched to memory APIs which don't return failure.

Switch all uses of reallocation of the array followed by
'virDomainDiskInsertPreAlloced' with direct virDomainDiskInsert.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
src/libxl/libxl_driver.c
src/lxc/lxc_driver.c
src/qemu/qemu_hotplug.c