guest agent: use QERR_UNSUPPORTED for disabled RPCs
authorMichael Roth <mdroth@linux.vnet.ibm.com>
Fri, 22 Jul 2011 21:42:00 +0000 (16:42 -0500)
committerAnthony Liguori <aliguori@us.ibm.com>
Sat, 23 Jul 2011 15:19:50 +0000 (10:19 -0500)
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
qga/guest-agent-commands.c

index e215bd3c5f04d2f2c10e19f552bbee8b652e90b9..624972e84ccd1678b8881f84cbff2b43b15e298d 100644 (file)
@@ -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;
 }