49 lines
1.5 KiB
Diff
49 lines
1.5 KiB
Diff
|
|
From 3a14516128cf936906e5f519bf7808b9a977a757 Mon Sep 17 00:00:00 2001
|
||
|
|
From: qihao_yewu <qihao_yewu@cmss.chinamobile.com>
|
||
|
|
Date: Fri, 7 Mar 2025 21:57:29 -0500
|
||
|
|
Subject: [PATCH] qga: Add log to guest-fsfreeze-thaw command
|
||
|
|
MIME-Version: 1.0
|
||
|
|
Content-Type: text/plain; charset=UTF-8
|
||
|
|
Content-Transfer-Encoding: 8bit
|
||
|
|
|
||
|
|
cheery-pick from ad1e6843632555c771dda6a9425930fa25b71fb3
|
||
|
|
|
||
|
|
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
|
||
|
|
Message-ID: <20241216154552.213961-2-kkostiuk@redhat.com>
|
||
|
|
Signed-off-by: Konstantin Kostiuk <kkostiuk@redhat.com>
|
||
|
|
Signed-off-by: qihao_yewu <qihao_yewu@cmss.chinamobile.com>
|
||
|
|
---
|
||
|
|
qga/commands-posix.c | 1 +
|
||
|
|
qga/commands-win32.c | 3 +++
|
||
|
|
2 files changed, 4 insertions(+)
|
||
|
|
|
||
|
|
diff --git a/qga/commands-posix.c b/qga/commands-posix.c
|
||
|
|
index 6169bbf7a0..f0d8e9e9c5 100644
|
||
|
|
--- a/qga/commands-posix.c
|
||
|
|
+++ b/qga/commands-posix.c
|
||
|
|
@@ -759,6 +759,7 @@ int64_t qmp_guest_fsfreeze_thaw(Error **errp)
|
||
|
|
ret = qmp_guest_fsfreeze_do_thaw(errp);
|
||
|
|
if (ret >= 0) {
|
||
|
|
ga_unset_frozen(ga_state);
|
||
|
|
+ slog("guest-fsthaw called");
|
||
|
|
execute_fsfreeze_hook(FSFREEZE_HOOK_THAW, errp);
|
||
|
|
} else {
|
||
|
|
ret = 0;
|
||
|
|
diff --git a/qga/commands-win32.c b/qga/commands-win32.c
|
||
|
|
index 697c65507c..656d1459f1 100644
|
||
|
|
--- a/qga/commands-win32.c
|
||
|
|
+++ b/qga/commands-win32.c
|
||
|
|
@@ -1275,6 +1275,9 @@ int64_t qmp_guest_fsfreeze_thaw(Error **errp)
|
||
|
|
qga_vss_fsfreeze(&i, false, NULL, errp);
|
||
|
|
|
||
|
|
ga_unset_frozen(ga_state);
|
||
|
|
+
|
||
|
|
+ slog("guest-fsthaw called");
|
||
|
|
+
|
||
|
|
return i;
|
||
|
|
}
|
||
|
|
|
||
|
|
--
|
||
|
|
2.41.0.windows.1
|
||
|
|
|