[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Xen-devel] Is it valid to permit numeric only DomName ?


  • To: "Yoshinori Katase" <y_katase@xxxxxxxxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: "Ian Pratt" <m+Ian.Pratt@xxxxxxxxxxxx>
  • Date: Wed, 28 Dec 2005 13:44:27 -0000
  • Delivery-date: Wed, 28 Dec 2005 13:48:47 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: AcYLa5hgKE1/nfF9RJ+1aDFQrwfE/gASHjtw
  • Thread-topic: [Xen-devel] Is it valid to permit numeric only DomName ?

 
> 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

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.