[pve-devel] snapshot improvements

Dietmar Maurer dietmar at proxmox.com
Tue Sep 25 10:37:42 CEST 2012


> > do you think image = size of memory if enough ? (if we have some bytes
> > more with incremental ?)
> 
> PVE/QemuServer.pm:
> 
>     my $driver_state_size = 32; # assume 32MB is enough to safe all driver
> state;
>     my $size = $conf->{memory} + $driver_state_size;

Unfortunately, the qemu code seem to report wrong values for 'remaining' 
bytes. So I had to increase allocated space to:

my $size = $conf->{memory}*2 + $driver_state_size;

Note: we truncate the file after save if possible.

- Dietmar




More information about the pve-devel mailing list