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

RE: [Xen-devel] no digit beginning name?


  • To: "Tim Freeman" <tfreeman@xxxxxxxxxxx>
  • From: "Ian Pratt" <m+Ian.Pratt@xxxxxxxxxxxx>
  • Date: Thu, 7 Jul 2005 16:25:51 +0100
  • Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
  • Delivery-date: Thu, 07 Jul 2005 15:24:43 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: AcWC9lnuRayLkBOjTPuuutxXeo7tAAAEa9lw
  • Thread-topic: [Xen-devel] no digit beginning name?

 

> Is it going to break anyone's setup if this patch does not 
> include '/' as a valid character in a name?  As I reported in 
> the beginning of the thread, it seems to cause an 
> unrecoverable crash to include '/'

Disallowing the usual 'problem' characters is probably a good thing
(e.g. quotes)

Ian

> On Sun, 3 Jul 2005 20:40:56 +0100
> "Ian Pratt" <m+Ian.Pratt@xxxxxxxxxxxx> wrote:
> 
> >  
> > > In XendDomainInfo.py --> check_name() there is a restriction in 
> > > place that a domain can not begin with a digit.  If I comment out 
> > > this check:
> > > 
> > >         if name[0] in string.digits:
> > >             raise VmError('invalid vm name')
> > > 
> > > ... I can start and stop a domain whose name starts with a digit 
> > > just fine.  Is there a reason this restriction is in place?
> > 
> > You can also manipulate domains by their domid, so I'm 
> guess the test 
> > is an attempt to avoid confusion. Preventing all-numeric 
> names would 
> > be more sensible -- can you post a fix.
> > 
> > Thanks.
> > Ian
> > 
> > 
> > _______________________________________________
> > Xen-devel mailing list
> > Xen-devel@xxxxxxxxxxxxxxxxxxx
> > http://lists.xensource.com/xen-devel
> > 
> 

_______________________________________________
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®.