5 messages in com.xensource.lists.xen-develRE: [Xen-devel] Is it valid to permit...
FromSent OnAttachments
Yoshinori Katase27 Dec 2005 20:59 
James Harper27 Dec 2005 21:20 
Ian Pratt28 Dec 2005 05:44 
Yoshinori Katase28 Dec 2005 16:01 
Ewan Mellor03 Jan 2006 06:21 
Subject:RE: [Xen-devel] Is it valid to permit numeric only DomName ?
From:Ian Pratt (m+Ia@cl.cam.ac.uk)
Date:12/28/2005 05:44:05 AM
List:com.xensource.lists.xen-devel

Now, Domname is permitted numeric only name. It is permitted even 0 ! Is this a specification ?

# xm list Name ID Mem(MiB) VCPUs State Time(s) Domain-0 0 512 1 r----- 503.1 22 21 64 1 ------ 1.2 21 22 64 1 -b---- 1.0

I typed "xm shutdown 21", when I want to shutdown DomID 21. But this command shutdowned Domname 21.

domain names should be enforced to start with a non-numeric character. This used to be the case, but obviously got lost somewhere.

An alternative to re-instating the test would be to make it such that the 'domain' parameter to commands is only interpretted as a domid iff a lookup as a name fails. That would at least make things consistent, but sometimes its just better to avoid the opportunity for confusion...

Ian