libxl, xl: fix domain name uniqueness check
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest6 patches 10 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | xl: Revert "xl: avoid creating domains with duplicate names"tools/ | +0 | 0 replies | |
| 2/6 | libxl: fix error handling (xenstore transaction leak) in libxl__domain_maketools/ | +29 | 0 replies | |
| 3/6 | libxl, xl: fixes to domain creation cleanup logic (domid values)tools/ tools/ tools/ | +8 | 10 replies | |
| 4/6 | libxl: internals: document the error behaviour of various libxl__xs_* functionstools/ | +10 | 0 replies | |
| 5/6 | libxl: during domain destruction, do not complain if no devices dir to destroytools/ | +6 | 0 replies | |
| 6/6 | libxl: prevent creation of domains with duplicate namestools/ tools/ | +23 | 0 replies |
Reviews trailers per patch
1 of 6 patches has a Reviewed-by or Acked-by.
| Patch | Stefano Stabellini |
|---|---|
| 1/6 | |
| 2/6 | |
| 3/6 | A-b |
| 4/6 | |
| 5/6 | |
| 6/6 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/6] libxl, xl: fix domain name uniqueness check
We knew that checking for the domain name uniqueness in parse_config_data in xl was wrong. Sadly not only is it wrong, but it doesn't work properly because it prevents the parsing of domain config files in various other contextx.
Instead, in this series, we put this check in libxl_domain_rename, which is the right place for it to be. This function is indeed called during domain creation to set the domain's name at the start. As a sop to those who think domain names are not important, we allow any number of domains with the name "". This is not recommended.
However, after moving this check down into the bowels of libxl domain creation, it became obvious during testing that the error paths with are taken when the check fails didn't work properly and generated a lot of noisy output.
So in this series:
patch 1: revert the original broken check
patches 2-5: error path fixes
patch 6: add the check to libxl_domain_rename