All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/6] libxl, xl: fix domain name uniqueness check
@ 2011-01-27 17:40 Ian Jackson
  2011-01-27 17:40 ` [PATCH 1/6] xl: Revert "xl: avoid creating domains with duplicate names" Ian Jackson
  0 siblings, 1 reply; 17+ messages in thread
From: Ian Jackson @ 2011-01-27 17:40 UTC (permalink / raw)
  To: xen-devel; +Cc: Ian Jackson

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

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2011-01-28 18:39 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-27 17:40 [PATCH 0/6] libxl, xl: fix domain name uniqueness check Ian Jackson
2011-01-27 17:40 ` [PATCH 1/6] xl: Revert "xl: avoid creating domains with duplicate names" Ian Jackson
2011-01-27 17:41   ` [PATCH 2/6] libxl: fix error handling (xenstore transaction leak) in libxl__domain_make Ian Jackson
2011-01-27 17:41     ` [PATCH 3/6] libxl, xl: fixes to domain creation cleanup logic (domid values) Ian Jackson
2011-01-27 17:41       ` [PATCH 4/6] libxl: internals: document the error behaviour of various libxl__xs_* functions Ian Jackson
2011-01-27 17:41         ` [PATCH 5/6] libxl: during domain destruction, do not complain if no devices dir to destroy Ian Jackson
2011-01-27 17:41           ` [PATCH 6/6] libxl: prevent creation of domains with duplicate names Ian Jackson
2011-01-27 18:33       ` [PATCH 3/6] libxl, xl: fixes to domain creation cleanup logic (domid values) Stefano Stabellini
2011-01-27 18:59         ` Ian Jackson
2011-01-27 20:01           ` Ian Jackson
2011-01-27 20:13             ` Gianni Tedesco
2011-01-28 12:22             ` Stefano Stabellini
2011-01-28 12:28               ` Ian Jackson
2011-01-28 13:27                 ` Stefano Stabellini
2011-01-28 17:38                   ` Ian Jackson
2011-01-28 17:52                     ` Stefano Stabellini
2011-01-28 18:39                       ` Ian Jackson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.