# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1274857935 -3600
# Node ID 2a3d51e575900631ce14a57a9331b06c5f396e22
# Parent a69d09da4917c7b57ceed65224e4bbc389601081
xl: allow nameless domains to be named
At present, find_domain() will exit(2) if you specify a domain by
number, but that domain doesn't have a corresponding name. However,
nothing seem to critically depend on common_domname being set, and the
test prevents dom0 or other nameless domains from being named. So
just remove the check.
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@xxxxxxxxxx>
Acked-by: Yang Hongyang <yanghy@xxxxxxxxxxxxxx>
---
tools/libxl/xl_cmdimpl.c | 4 ----
1 files changed, 4 deletions(-)
diff -r a69d09da4917 -r 2a3d51e57590 tools/libxl/xl_cmdimpl.c
--- a/tools/libxl/xl_cmdimpl.c Wed May 26 08:09:38 2010 +0100
+++ b/tools/libxl/xl_cmdimpl.c Wed May 26 08:12:15 2010 +0100
@@ -138,10 +138,6 @@ static void find_domain(const char *p)
exit(2);
}
common_domname = was_name ? p : libxl_domid_to_name(&ctx, domid);
- if (!common_domname) {
- fprintf(stderr, "%s is an invalid domain identifier.\n", p);
- exit(2);
- }
}
#define LOG(_f, _a...) dolog(__FILE__, __LINE__, __func__, _f "\n", ##_a)
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|