From: Luiz Capitulino <lcapitulino@redhat.com>
To: Michael Roth <mdroth@linux.vnet.ibm.com>
Cc: qemu-trivial@nongnu.org, qemu-devel@nongnu.org, afaerber@suse.de
Subject: Re: [Qemu-trivial] [PATCH 1/2] qemu-ga: generate missing stubs for fsfreeze
Date: Tue, 17 Apr 2012 14:35:59 -0300 [thread overview]
Message-ID: <20120417143559.3a323dd9@doriath.home> (raw)
In-Reply-To: <1334682459-27835-1-git-send-email-mdroth@linux.vnet.ibm.com>
On Tue, 17 Apr 2012 12:07:38 -0500
Michael Roth <mdroth@linux.vnet.ibm.com> wrote:
> When linux-specific commands (including guest-fsfreeze-*) were consolidated
> under defined(__linux__), we forgot to account for the case where
> defined(__linux__) && !defined(FIFREEZE). As a result stubs are no longer
> being generated on linux hosts that don't have FIFREEZE support. Fix
> this.
>
> Tested-by: Andreas Färber <afaerber@suse.de>
> Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Reviewed-by: Luiz Capitulino <lcapitulino@redhat.com>
> ---
> qga/commands-posix.c | 36 ++++++++++++++++++++----------------
> 1 files changed, 20 insertions(+), 16 deletions(-)
>
> diff --git a/qga/commands-posix.c b/qga/commands-posix.c
> index faf970d..087c3af 100644
> --- a/qga/commands-posix.c
> +++ b/qga/commands-posix.c
> @@ -881,46 +881,50 @@ error:
>
> #else /* defined(__linux__) */
>
> -GuestFsfreezeStatus qmp_guest_fsfreeze_status(Error **err)
> +void qmp_guest_suspend_disk(Error **err)
> {
> error_set(err, QERR_UNSUPPORTED);
> -
> - return 0;
> }
>
> -int64_t qmp_guest_fsfreeze_freeze(Error **err)
> +void qmp_guest_suspend_ram(Error **err)
> {
> error_set(err, QERR_UNSUPPORTED);
> -
> - return 0;
> }
>
> -int64_t qmp_guest_fsfreeze_thaw(Error **err)
> +void qmp_guest_suspend_hybrid(Error **err)
> {
> error_set(err, QERR_UNSUPPORTED);
> -
> - return 0;
> }
>
> -void qmp_guest_suspend_disk(Error **err)
> +GuestNetworkInterfaceList *qmp_guest_network_get_interfaces(Error **errp)
> {
> - error_set(err, QERR_UNSUPPORTED);
> + error_set(errp, QERR_UNSUPPORTED);
> + return NULL;
> }
>
> -void qmp_guest_suspend_ram(Error **err)
> +#endif
> +
> +#if !defined(CONFIG_FSFREEZE)
> +
> +GuestFsfreezeStatus qmp_guest_fsfreeze_status(Error **err)
> {
> error_set(err, QERR_UNSUPPORTED);
> +
> + return 0;
> }
>
> -void qmp_guest_suspend_hybrid(Error **err)
> +int64_t qmp_guest_fsfreeze_freeze(Error **err)
> {
> error_set(err, QERR_UNSUPPORTED);
> +
> + return 0;
> }
>
> -GuestNetworkInterfaceList *qmp_guest_network_get_interfaces(Error **errp)
> +int64_t qmp_guest_fsfreeze_thaw(Error **err)
> {
> - error_set(errp, QERR_UNSUPPORTED);
> - return NULL;
> + error_set(err, QERR_UNSUPPORTED);
> +
> + return 0;
> }
>
> #endif
next prev parent reply other threads:[~2012-04-17 17:36 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-17 17:07 [Qemu-trivial] [PATCH 1/2] qemu-ga: generate missing stubs for fsfreeze Michael Roth
2012-04-17 17:07 ` [Qemu-trivial] [PATCH 2/2] qemu-ga: fix help output Michael Roth
2012-04-17 17:38 ` Luiz Capitulino
2012-04-17 17:35 ` Luiz Capitulino [this message]
2012-04-19 15:49 ` [Qemu-trivial] [PATCH 1/2] qemu-ga: generate missing stubs for fsfreeze Michael Roth
2012-04-20 12:02 ` Stefan Hajnoczi
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=20120417143559.3a323dd9@doriath.home \
--to=lcapitulino@redhat.com \
--cc=afaerber@suse.de \
--cc=mdroth@linux.vnet.ibm.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-trivial@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).