add qemu_snapshot_start

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
Alexandre Derumier 2012-09-06 10:33:36 +02:00 committed by Dietmar Maurer
parent 9dbd1ee434
commit 182e97d9b0

View File

@ -2766,6 +2766,16 @@ sub qemu_volume_snapshot {
}
sub qemu_snapshot_start {
my ($vmid, $snap) = @_;
#need to implement statefile location
my $statefile="/tmp/$vmid-$snap";
vm_mon_cmd($vmid, "snapshot-start", statefile => $statefile);
}
sub vm_start {
my ($storecfg, $vmid, $statefile, $skiplock, $migratedfrom) = @_;