WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

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

To: "Tim Freeman" <tfreeman@xxxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-devel] no digit beginning name?
From: "Ian Pratt" <m+Ian.Pratt@xxxxxxxxxxxx>
Date: Sun, 3 Jul 2005 20:40:56 +0100
Delivery-date: Sun, 03 Jul 2005 19:39:48 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcV/+k6yq87Yp+AgSBSw/GTLB8k3YwADHvrA
Thread-topic: [Xen-devel] no digit beginning name?
 
> 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