public/io: xs_wire: Document that new errors should be added at the end
PATCH v3 1/1 public/io: xs_wire: Document that new errors should be added at the end
From: Julien Grall <[email protected]>
Some tools (e.g. xenstored) always expect EINVAL to be first in xsd_errors.
To be conservative, mandate that new errors should be added at the end of the array.
----
Changes in v3:
- Mandate that new errors should be added at the end.
Changes in v2:
- New patch
--- xen/include/public/io/xs_wire.h | 1 + 1 file changed, 1 insertion(+)
xen/include/public/io/xs_wire.h +1 -0
@@ -76,6 +76,7 @@ static struct xsd_errors xsd_errors[] __attribute__((unused)) #endif = { + /* /!\ New errors should be added at the end of the array. */ XSD_ERROR(EINVAL), XSD_ERROR(EACCES), XSD_ERROR(EEXIST),
Signature · 1 line
2.32.0
Hi Julien,
Quoted 4 lines
-----Original Message-----
Subject: [PATCH v3] public/io:xs_wire: Document that new errors should be added at the end
Quoted 8 lines
From: Julien Grall <[email protected]>
Some tools (e.g. xenstored) always expect EINVAL to be first in
xsd_errors.To be conservative, mandate that new errors should be added at the end of the array.
Signed-off-by Julien Grall <[email protected]>
While the change is looking good, just FYI there is an "ERROR" section in /xen/docs/misc/xenstore.txt that points to the io/xs_wire.h. You may want to add something there (that depends on your own taste :)) )
With or without above additional documentation:
Kind regards,
Henry
Quoted 28 lines
----
Changes in v3:
- Mandate that new errors should be added at the end.Changes in v2:
- New patch--- xen/include/public/io/xs_wire.h | 1 + 1 file changed, 1 insertion(+)xen/include/public/io/xs_wire.h +1
-1@@ -76,6 +76,7 @@ static struct xsd_errors xsd_errors[] __attribute__((unused)) #endif = { + /* /!\ New errors should be added at the end of the array. */ XSD_ERROR(EINVAL), XSD_ERROR(EACCES), XSD_ERROR(EEXIST), --2.32.0
Quoted 10 lines · Henry Wang
Hi Julien,
Quoted 8 lines
-----Original Message-----
Subject: [PATCH v3] public/io:xs_wire: Document that new errors should be added at the endFrom: Julien Grall <[email protected]>
Some tools (e.g. xenstored) always expect EINVAL to be first in
xsd_errors.
Quoted 8 lines
Quoted 4 lines
To be conservative, mandate that new errors should be added at the end of the array.
Signed-off-by Julien Grall <[email protected]>While the change is looking good, just FYI there is an "ERROR" section in /xen/docs/misc/xenstore.txt that points to the
io/xs_wire.h. You may want to add something there (that depends on your own taste :)) )
This documentation is meant for users of Xenstore, not for how to modify it. I think the comment is all what should be added.
Juergen
Hi Juergen,
Quoted 16 lines
-----Original Message-----
Quoted 4 lines · Henry Wang
Hi Julien,
Quoted 2 lines
-----Original Message-----
Subject: [PATCH v3] public/io:xs_wire: Document that new errors shouldbe
Quoted 9 lines
Quoted 9 lines
added at the end
From: Julien Grall <[email protected]>
Some tools (e.g. xenstored) always expect EINVAL to be first in
xsd_errors.To be conservative, mandate that new errors should be added at the end of the array.
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
Signed-off-by Julien Grall <[email protected]>While the change is looking good, just FYI there is an "ERROR" section in /xen/docs/misc/xenstore.txt that points to the
io/xs_wire.h. You may want to add something there (that depends on your own taste :)) )This documentation is meant for users of Xenstore, not for how to modify it. I think the comment is all what should be added.
Ok sure, thanks for the information. Then I think this patch is perfect.
Kind regards,
Henry
Quoted 3 lines
Juergen
Quoted 8 lines · Julien Grall
From: Julien Grall <[email protected]>
Some tools (e.g. xenstored) always expect EINVAL to be first in
xsd_errors.To be conservative, mandate that new errors should be added at the end of the array.
Signed-off-by Julien Grall <[email protected]>
Juergen
Hi Juergen,
Quoted 11 lines · Juergen Gross
Quoted 8 lines · Julien Grall
From: Julien Grall <[email protected]>
Some tools (e.g. xenstored) always expect EINVAL to be first in
xsd_errors.To be conservative, mandate that new errors should be added at the end of the array.
Signed-off-by Julien Grall <[email protected]>Reviewed-by Juergen Gross <[email protected]>
Thanks! I have committed the patch.
Cheers,
Signature · 1 line
Julien Grall