diff mbox series

[v2,1/1] qga: Add log to guest-fsfreeze-thaw command

Message ID 20241216154552.213961-2-kkostiuk@redhat.com (mailing list archive)
State New
Headers show
Series qga: Add log to guest-fsfreeze-thaw command | expand

Commit Message

Konstantin Kostiuk Dec. 16, 2024, 3:45 p.m. UTC
Signed-off-by: Konstantin Kostiuk <kkostiuk@redhat.com>
---
 qga/commands-posix.c | 2 ++
 qga/commands-win32.c | 3 +++
 2 files changed, 5 insertions(+)

Comments

Konstantin Kostiuk Jan. 6, 2025, 9:37 a.m. UTC | #1
ping

On Mon, Dec 16, 2024 at 5:47 PM Konstantin Kostiuk <kkostiuk@redhat.com>
wrote:

> Signed-off-by: Konstantin Kostiuk <kkostiuk@redhat.com>
> ---
>  qga/commands-posix.c | 2 ++
>  qga/commands-win32.c | 3 +++
>  2 files changed, 5 insertions(+)
>
> diff --git a/qga/commands-posix.c b/qga/commands-posix.c
> index 636307bedf..359a56be81 100644
> --- a/qga/commands-posix.c
> +++ b/qga/commands-posix.c
> @@ -805,8 +805,10 @@ int64_t qmp_guest_fsfreeze_thaw(Error **errp)
>      int ret;
>
>      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 038beb8cfa..7d8e260e1f 100644
> --- a/qga/commands-win32.c
> +++ b/qga/commands-win32.c
> @@ -1273,6 +1273,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.47.1
>
>
>
diff mbox series

Patch

diff --git a/qga/commands-posix.c b/qga/commands-posix.c
index 636307bedf..359a56be81 100644
--- a/qga/commands-posix.c
+++ b/qga/commands-posix.c
@@ -805,8 +805,10 @@  int64_t qmp_guest_fsfreeze_thaw(Error **errp)
     int ret;
 
     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 038beb8cfa..7d8e260e1f 100644
--- a/qga/commands-win32.c
+++ b/qga/commands-win32.c
@@ -1273,6 +1273,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;
 }