There are two callers of __snapshot_freeze: replication and snapshot. On the former we already use the log function to log both freeze & thaw instance and in this commit we add the later.
However, note that we do not have access to a log function at this stage and we simply print. Signed-off-by: Maximiliano Sandoval <[email protected]> --- src/PVE/AbstractConfig.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/PVE/AbstractConfig.pm b/src/PVE/AbstractConfig.pm index 420a10d..13accf8 100644 --- a/src/PVE/AbstractConfig.pm +++ b/src/PVE/AbstractConfig.pm @@ -840,6 +840,7 @@ sub snapshot_create { $class->__snapshot_activate_storages($conf, 0); if ($freezefs) { + print("freeze guest filesystem\n"); $class->__snapshot_freeze($vmid, 0); } @@ -860,6 +861,7 @@ sub snapshot_create { if ($running) { $class->__snapshot_create_vol_snapshots_hook($vmid, $snap, $running, "after"); if ($freezefs) { + print("unfreeze filesystem\n"); $class->__snapshot_freeze($vmid, 1); } $class->__snapshot_create_vol_snapshots_hook($vmid, $snap, $running, "after-unfreeze"); -- 2.47.3 _______________________________________________ pve-devel mailing list [email protected] https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
