[pve-devel] [PATCH qemu-server v2 2/6] tests: add migration test for pending disk

Fiona Ebner f.ebner at proxmox.com
Mon May 22 16:02:37 CEST 2023


Am 12.05.23 um 14:40 schrieb Aaron Lauterer:
> +	    vm_config => get_patched_config(111, {
> +		ide0 => 'local-lvm:vm-111-disk-10,format=raw,size=4G',
> +		pending => {
> +		    scsi0 => 'local-zfs:vm-111-disk-0,size=103M',
> +		    snapshots => {},
> +		},

I was wondering why you would need this. In the last patch, you call
PVE::QemuServer::foreach_volid($conf->{pending}) and I think that
auto-vivifies $conf->{pending}->{snapshots}. Another reason to extend
the function instead of calling it with a non-full config ;)





More information about the pve-devel mailing list