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

[Xen-devel][PATCH]Fix the issue that guest cannot boot if set empty cdro

To: "Keir Fraser" <keir.fraser@xxxxxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel][PATCH]Fix the issue that guest cannot boot if set empty cdrom in config file
From: "Xu, Dongxiao" <dongxiao.xu@xxxxxxxxx>
Date: Tue, 13 May 2008 13:56:20 +0800
Delivery-date: Mon, 12 May 2008 22:57:01 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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: Aci0vhEnErTXFIRYRVK8DsZJQ78r3Q==
Thread-topic: [Xen-devel][PATCH]Fix the issue that guest cannot boot if set empty cdrom in config file
Hi, Keir,
      This attached patch fixes the issue that guest can not boot if set
empty cdrom in configuration file. 
(For example, disk = [ 'file:/images/a.img', ',hdc:cdrom,r' ])

This is because function "uname = config.get('uname', '')" returns ''
but not None if uname is not in config variable. 

Signed-off-by: Xu Dongxiao <dongxiao.xu@xxxxxxxxx>

Best Regards,
--Dongxiao

Attachment: blk_python.patch
Description: blk_python.patch

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>