diff options
author | Ian Jackson <ian.jackson@eu.citrix.com> | 2011-01-27 18:59:07 +0000 |
---|---|---|
committer | Ian Jackson <ian.jackson@eu.citrix.com> | 2011-01-27 18:59:07 +0000 |
commit | 921fb156d4bd70020211e377207f52e06cb12e16 (patch) | |
tree | fbd860e1f60c83863ce5646151859af4ab8ccfbe | |
parent | 0145b0e442c094e02b698ea998e5c4ff9d346d6a (diff) | |
download | xen-921fb156d4bd70020211e377207f52e06cb12e16.tar.gz xen-921fb156d4bd70020211e377207f52e06cb12e16.tar.bz2 xen-921fb156d4bd70020211e377207f52e06cb12e16.zip |
xl: Revert "xl: avoid creating domains with duplicate names"
This reverts commit 22820:310cc33bfc81. This functionality should not
be in the domain parsing logic. It needs to be in libxl_domain_make.
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Stefano Stabellini <Stefano.Stabellini@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
-rw-r--r-- | tools/libxl/xl_cmdimpl.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c index 76c64084d9..5826755ee6 100644 --- a/tools/libxl/xl_cmdimpl.c +++ b/tools/libxl/xl_cmdimpl.c @@ -583,7 +583,6 @@ static void parse_config_data(const char *configfile_filename_report, XLU_ConfigList *vbds, *nics, *pcis, *cvfbs, *net2s, *cpuids; int pci_power_mgmt = 0; int pci_msitranslate = 1; - uint32_t domid_e; int e; libxl_domain_create_info *c_info = &d_config->c_info; @@ -613,15 +612,6 @@ static void parse_config_data(const char *configfile_filename_report, if (xlu_cfg_replace_string (config, "name", &c_info->name)) c_info->name = strdup("test"); - e = libxl_name_to_domid(&ctx, c_info->name, &domid_e); - if (!e) { - fprintf(stderr, "A domain with name \"%s\" already exists.\n", c_info->name); - exit(1); - } - if (e != ERROR_INVAL) { - fprintf(stderr, "Unexpected error checking for existing domain" - " (error=%d)", e); - } if (!xlu_cfg_get_string (config, "uuid", &buf) ) { if ( libxl_uuid_from_string(&c_info->uuid, buf) ) { |