Finish eliminating QERR_UNSUPPORTED
cover Finish eliminating QERR_UNSUPPORTED
Markus Armbruster (2):
qga/qapi-schema: Drop obsolete note on "unsupported" errors
qga: Improve error for guest-set-user-password parameter @crypted
qga/qapi-schema.json | 9 --------- include/qapi/qmp/qerror.h | 3 --- qga/commands-win32.c | 2 +- 3 files changed, 1 insertion(+), 13 deletions(-)
Signature · 1 line
2.46.0
PATCH 1/2 qga/qapi-schema: Drop obsolete note on "unsupported" errors
The note talks about "unsupported" errors and QERR_UNSUPPORTED. The former is vague, and the latter makes sense only in C, not in external interface documentation. Fortunately, we don't have to address this
anymore: recent merge commit 3b5efc553eb got rid of these errors. Delete the note.
--- qga/qapi-schema.json | 9 --------- 1 file changed, 9 deletions(-)
qga/qapi-schema.json +0 -9
@@ -1,15 +1,6 @@ # *-*- Mode: Python -*-* # vim: filetype=python -## -# = General note concerning the use of guest agent interfaces -# -# "unsupported" is a higher-level error than the errors that -# individual commands might document. The caller should always be -# prepared to receive QERR_UNSUPPORTED, even if the given command -# doesn't specify it, or doesn't document any failure mode at all. -## - ## # = QEMU guest agent protocol commands and structs ##
Signature · 1 line
2.46.0
Re: [PATCH 1/2] qga/qapi-schema: Drop obsolete note on "unsupported" errors
Quoted 35 lines · Markus Armbruster
The note talks about "unsupported" errors and
QERR_UNSUPPORTED. The former is vague, and the latter makes sense only in C, not in external interface documentation. Fortunately, we don't have to address this
anymore: recent merge commit3b5efc553ebgot rid of these errors. Delete the note.Signed-off-by Markus Armbruster <[email protected]>--- qga/qapi-schema.json | 9 --------- 1 file changed, 9 deletions(-)qga/qapi-schema.json +0
-10@@ -1,15 +1,6 @@ # *-*- Mode: Python -*-* # vim: filetype=python -## -# = General note concerning the use of guest agent interfaces -# -# "unsupported" is a higher-level error than the errors that -# individual commands might document. The caller should always be -# prepared to receive QERR_UNSUPPORTED, even if the given command -# doesn't specify it, or doesn't document any failure mode at all. -## - ## # = QEMU guest agent protocol commands and structs ## --2.46.0
PATCH 2/2 qga: Improve error for guest-set-user-password parameter @crypted
In reply to Markus ArmbrusterThe Windows version of guest-set-user-password rejects argument "crypted": true with the rather useless "this feature or command is not currently supported". Improve to "'crypted' must be off on this host".
QERR_UNSUPPORTED is now unused. Drop.
--- include/qapi/qmp/qerror.h | 3 --- qga/commands-win32.c | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-)
include/qapi/qmp/qerror.h +0 -3
@@ -26,7 +26,4 @@#define QERR_PROPERTY_VALUE_OUT_OF_RANGE \ "Property %s.%s doesn't take value %" PRId64 " (minimum: %" PRId64 ", maximum: %" PRId64 ")" -#define QERR_UNSUPPORTED \ - "this feature or command is not currently supported" -#endif /* QERROR_H */
qga/commands-win32.c +1 -1
@@ -1914,7 +1914,7 @@ void qmp_guest_set_user_password(const char *username,GError *gerr =NULL ;if (crypted) { -error_setg (errp,QERR_UNSUPPORTED ); +error_setg (errp,"'crypted' must be off on this host" );return ; }
Signature · 1 line
2.46.0
Re: [PATCH 2/2] qga: Improve error for guest-set-user-password parameter @crypted
Quoted 5 lines · Markus Armbruster
The Windows version of guest-set-user-password rejects argument "crypted": true with the rather useless "this feature or command is not currently supported". Improve to "'crypted' must be off on this host".
Quoted 7 lines
QERR_UNSUPPORTEDis now unused. Drop.Signed-off-by Markus Armbruster <[email protected]>--- include/qapi/qmp/qerror.h | 3 --- qga/commands-win32.c | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-)
\o/
Re: [PATCH 2/2] qga: Improve error for guest-set-user-password parameter @crypted
In reply to Markus ArmbrusterQuoted 44 lines · Markus Armbruster
The Windows version of guest-set-user-password rejects argument "crypted": true with the rather useless "this feature or command is not currently supported". Improve to "'crypted' must be off on this host".
QERR_UNSUPPORTEDis now unused. Drop.Signed-off-by Markus Armbruster <[email protected]>--- include/qapi/qmp/qerror.h | 3 --- qga/commands-win32.c | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-)include/qapi/qmp/qerror.h +0
-0@@ -26,7 +26,4 @@#define QERR_PROPERTY_VALUE_OUT_OF_RANGE \ "Property %s.%s doesn't take value %" PRId64 " (minimum: %" PRId64 ",maximum: %" PRId64 ")"
include/qapi/qmp/qerror.h +0
-3-#define QERR_UNSUPPORTED \ - "this feature or command is not currently supported" -#endif /* QERROR_H */ qga/commands-win32.c +1
-2@@ -1914,7 +1914,7 @@ void qmp_guest_set_user_password(const char *username, GError *gerr =NULL ;if (crypted) { -error_setg (errp,QERR_UNSUPPORTED ); +error_setg (errp,"'crypted' must be off on this host" );return ; } --2.46.0
Queued.