[pve-devel] [PATCH v2 container 1/2] Make snapshot_save_vmstate proper sub
Fabian Grünbichler
f.gruenbichler at proxmox.com
Fri Feb 26 09:19:43 CET 2016
---
src/PVE/LXC.pm | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/PVE/LXC.pm b/src/PVE/LXC.pm
index dcec775..2480040 100644
--- a/src/PVE/LXC.pm
+++ b/src/PVE/LXC.pm
@@ -1800,9 +1800,9 @@ my $snapshot_apply_config = sub {
return $newconf;
};
-my $snapshot_save_vmstate = sub {
+sub snapshot_save_vmstate {
die "implement me - snapshot_save_vmstate\n";
-};
+}
sub snapshot_prepare {
my ($vmid, $snapname, $save_vmstate, $comment) = @_;
@@ -1832,7 +1832,7 @@ sub snapshot_prepare {
$snap = $conf->{snapshots}->{$snapname} = {};
if ($save_vmstate && check_running($vmid)) {
- &$snapshot_save_vmstate($vmid, $conf, $snapname, $storecfg);
+ snapshot_save_vmstate($vmid, $conf, $snapname, $storecfg);
}
&$snapshot_copy_config($conf, $snap);
--
2.1.4
More information about the pve-devel
mailing list