xl: convert exit codes related to domain subcommands to EXIT_[SUCCESS|FAILURE]
Status from this message: I have queued patches 1-5. Thanks to Dario for the git branch.
Get series with b4
b4 am [email protected]Versions newest first
Patches in v3 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | xl: improve return and exit codes of memory related functionstools/ | +22 | 2 replies | |
| 2/6 | xl: improve exit codes of save/restore and migration functionstools/ | +40 | 1 reply | |
| 3/6 | xl: improve exit codes of some of the domain handling functionstools/ | +36 | 1 reply | |
| 4/6 | xl : improve exit codes of debug related functionstools/ | +8 | 1 reply | |
| 5/6 | xl: make return type of create_domain() more consistent.tools/ | +1 | 1 reply | |
| 6/6 | xl: improve exit codes of domain creation related functionstools/ | +16 | 1 reply |
Reviews trailers per patch
5 of 6 patches have a Reviewed-by or Acked-by.
| Patch | Wei Liu |
|---|---|
| 1/6 | A-b |
| 2/6 | A-b |
| 3/6 | A-b |
| 4/6 | A-b |
| 5/6 | A-b |
| 6/6 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v3 0/6] xl: convert exit codes related to domain subcommands to EXIT_[SUCCESS|FAILURE]
Hi tools maintainers,
So, this series from Harmandeep seems to have fallen through the cracks (and that's my fault, as I said I'd have handled it). In any case, it was posted before last posting day, it looks simple enough to me and it's a nice cleanup.
This is about using EXIT_SUCCESS or EXIT_FAILURE when calling exit(), in xl. main_foo() functions are treated as they were main(), and so they also return EXIT_SUCCESS or EXIT_FAILURE. Internal functions are also refactored. The idea was to have them return either 0 or 1, but there needs to be exceptions (that are documented). TBF, this series mostly deals with exit codes, and the amount of internal function refactoring is rather limited.
Unfortunately, even after this series, there will still be more similar cleanup to do... but that would have to wait 4.8.
Version 2 was already almost ok, but there were a few adjustments needed. Therefore, instead than asking for them, I've done them myself. That basically means that I've reorganized the series a bit, squashing some patches together. I've also reduced the scope of "xl: improve return and exit codes of dom create related functions" to only deal with exit()-s from within that function, as quite a few more work than what was being done in that patch in v2 was necessary to propetly refactoring the internal return paths.
I've also added patch "xl: make return type of create_domain() more consistent.", doing what we agreed upon on IRC (about making the return type 'int'). I could have folded that change in the other patch, but I thought the thing would deserve its own changelog.
v2 is here:
http://lists.xenproject.org/archives/html/xen-devel/2016-03/msg01037.html
and there is a git branch with the series applied here:
git://xenbits.xen.org/people/dariof/xen.git rel/xl/exit-code-cleanup-v3
http://xenbits.xen.org/gitweb/?p=people/dariof/xen.git;a=shortlog;h=refs/heads/rel/xl/exit-code-cleanup-v3
Let me know what you think.
Thanks and Regards,
Dario
---
Dario Faggioli (2):
xl: make return type of create_domain() more consistent.
xl: improve return and exit codes of dom create related functions
Harmandeep Kaur (4):
xl: improve return and exit codes of memory related functions
xl: improve exit codes of save/restore and migration functions
xl: improve exit codes of some of the domain handling functions
xl: improve exit codes of debug related functions
tools/libxl/xl_cmdimpl.c | 241 +++++++++++++++++++++++----------------------- 1 file changed, 123 insertions(+), 118 deletions(-)
--
<<This happens because I choose it to happen!>> (Raistlin Majere)
-----------------------------------------------------------------
Dario Faggioli, Ph.D, http://about.me/dario.faggioli
Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel