From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) by lore.proxmox.com (Postfix) with ESMTPS id 9450B1FF187 for ; Fri, 2 Jan 2026 15:35:00 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 288ECCD57; Fri, 2 Jan 2026 15:35:50 +0100 (CET) From: Maximiliano Sandoval To: pve-devel@lists.proxmox.com Date: Fri, 2 Jan 2026 15:35:44 +0100 Message-ID: <20260102143544.354066-10-m.sandoval@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260102143544.354066-1-m.sandoval@proxmox.com> References: <20260102143544.354066-1-m.sandoval@proxmox.com> MIME-Version: 1.0 X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1767364514794 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.090 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: [pve-devel] [PATCH guest-common v4 1/1] abstract config: print when {, un}freezing a fs X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Proxmox VE development discussion Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: pve-devel-bounces@lists.proxmox.com Sender: "pve-devel" 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 --- 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 pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel