From: "Chen Hanxiao" <chen_han_xiao@126.com>
To: Chen Hanxiao <chen_han_xiao@126.com>
Cc: qemu-devel@nongnu.org, Michael Roth <mdroth@linux.vnet.ibm.com>
Subject: Re: [Qemu-devel] [PATCH] qga: unset frozen state if no mount points are frozen
Date: Fri, 5 Jan 2018 09:53:45 +0800 (CST) [thread overview]
Message-ID: <2f94e1ab.1ccd.160c4062532.Coremail.chen_han_xiao@126.com> (raw)
In-Reply-To: <20171216073417.29847-1-chen_han_xiao@126.com>
At 2017-12-16 15:34:17, "Chen Hanxiao" <chen_han_xiao@126.com> wrote:
>From: Chen Hanxiao <chenhanxiao@gmail.com>
>
>If we set mountpoints to qmp_guest_fsfreeze_freeze_list,
>we may got nothing to freeze as all mountpoints are
>not valid.
>Call ga_unset_frozen in this senario.
>
>Cc: Michael Roth <mdroth@linux.vnet.ibm.com>
>Signed-off-by: Chen Hanxiao <chenhanxiao@gmail.com>
>---
> qga/commands-posix.c | 6 ++++++
> 1 file changed, 6 insertions(+)
>
>diff --git a/qga/commands-posix.c b/qga/commands-posix.c
>index e809e382eb..9fd51f1d7a 100644
>--- a/qga/commands-posix.c
>+++ b/qga/commands-posix.c
>@@ -1273,6 +1273,12 @@ int64_t qmp_guest_fsfreeze_freeze_list(bool has_mountpoints,
> }
>
> free_fs_mount_list(&mounts);
>+ /* We may not issue any FIFREEZE here when had mountpoints.
>+ * Just unset ga_state here and ready for the next call.
>+ */
>+ if (has_mountpoints && i == 0) {
>+ ga_unset_frozen(ga_state);
>+ }
> return i;
>
> error:
>--
Hi,
Any comments?
Regards,
- Chen
prev parent reply other threads:[~2018-01-05 2:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-16 7:34 [Qemu-devel] [PATCH] qga: unset frozen state if no mount points are frozen Chen Hanxiao
2018-01-05 1:53 ` Chen Hanxiao [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2f94e1ab.1ccd.160c4062532.Coremail.chen_han_xiao@126.com \
--to=chen_han_xiao@126.com \
--cc=mdroth@linux.vnet.ibm.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).