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

[Xen-changelog] [xen-unstable] Xend: don't check for device reuse if the device has no uname.



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1198158507 0
# Node ID 741ecee8ccc0b753b5e341bed8e7f3069619517a
# Parent  923b8dbb0fed24c9218c1fff69446a1ed6ba59cf
Xend: don't check for device reuse if the device has no uname.
Signed-off-by: Tim Deegan <Tim.Deegan@xxxxxxxxxx>
---
 tools/python/xen/xend/XendConfig.py |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r 923b8dbb0fed -r 741ecee8ccc0 tools/python/xen/xend/XendConfig.py
--- a/tools/python/xen/xend/XendConfig.py       Thu Dec 20 13:16:21 2007 +0000
+++ b/tools/python/xen/xend/XendConfig.py       Thu Dec 20 13:48:27 2007 +0000
@@ -985,7 +985,7 @@ class XendConfig(dict):
             dev_uname = dev_info.get('uname')
             blkdev_name = dev_info.get('dev')
             devid = self._blkdev_name_to_number(blkdev_name)
-            if devid == None:
+            if devid == None or dev_uname == None:
                 return
             
             for o_dev_type, o_dev_info in defined_devices_sxpr:

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


 


Rackspace

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