Patchwork guest agent: use QERR_UNSUPPORTED for disabled RPCs

login
register
mail settings
Submitter Michael Roth
Date July 22, 2011, 9:42 p.m.
Message ID <1311370920-29327-1-git-send-email-mdroth@linux.vnet.ibm.com>
Download mbox | patch
Permalink /patch/106392/
State New
Headers show

Comments

Michael Roth - July 22, 2011, 9:42 p.m.
---
 qga/guest-agent-commands.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
Anthony Liguori - July 23, 2011, 3:43 p.m.
On 07/22/2011 04:42 PM, Michael Roth wrote:

Applied.  Thanks.

Regards,

Anthony Liguori

> ---
>   qga/guest-agent-commands.c |    6 +++---
>   1 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/qga/guest-agent-commands.c b/qga/guest-agent-commands.c
> index e215bd3..624972e 100644
> --- a/qga/guest-agent-commands.c
> +++ b/qga/guest-agent-commands.c
> @@ -521,7 +521,7 @@ static void guest_fsfreeze_cleanup(void)
>    */
>   GuestFsfreezeStatus qmp_guest_fsfreeze_status(Error **err)
>   {
> -    error_set(err, QERR_COMMAND_NOT_FOUND, "guest_fsfreeze_status");
> +    error_set(err, QERR_UNSUPPORTED);
>
>       return 0;
>   }
> @@ -532,7 +532,7 @@ GuestFsfreezeStatus qmp_guest_fsfreeze_status(Error **err)
>    */
>   int64_t qmp_guest_fsfreeze_freeze(Error **err)
>   {
> -    error_set(err, QERR_COMMAND_NOT_FOUND, "guest_fsfreeze_freeze");
> +    error_set(err, QERR_UNSUPPORTED);
>
>       return 0;
>   }
> @@ -542,7 +542,7 @@ int64_t qmp_guest_fsfreeze_freeze(Error **err)
>    */
>   int64_t qmp_guest_fsfreeze_thaw(Error **err)
>   {
> -    error_set(err, QERR_COMMAND_NOT_FOUND, "guest_fsfreeze_thaw");
> +    error_set(err, QERR_UNSUPPORTED);
>
>       return 0;
>   }

Patch

diff --git a/qga/guest-agent-commands.c b/qga/guest-agent-commands.c
index e215bd3..624972e 100644
--- a/qga/guest-agent-commands.c
+++ b/qga/guest-agent-commands.c
@@ -521,7 +521,7 @@  static void guest_fsfreeze_cleanup(void)
  */
 GuestFsfreezeStatus qmp_guest_fsfreeze_status(Error **err)
 {
-    error_set(err, QERR_COMMAND_NOT_FOUND, "guest_fsfreeze_status");
+    error_set(err, QERR_UNSUPPORTED);
 
     return 0;
 }
@@ -532,7 +532,7 @@  GuestFsfreezeStatus qmp_guest_fsfreeze_status(Error **err)
  */
 int64_t qmp_guest_fsfreeze_freeze(Error **err)
 {
-    error_set(err, QERR_COMMAND_NOT_FOUND, "guest_fsfreeze_freeze");
+    error_set(err, QERR_UNSUPPORTED);
 
     return 0;
 }
@@ -542,7 +542,7 @@  int64_t qmp_guest_fsfreeze_freeze(Error **err)
  */
 int64_t qmp_guest_fsfreeze_thaw(Error **err)
 {
-    error_set(err, QERR_COMMAND_NOT_FOUND, "guest_fsfreeze_thaw");
+    error_set(err, QERR_UNSUPPORTED);
 
     return 0;
 }