Skip to contentSkip to conversation

Fix Bug 1253

PATCH In review Masaki Kanno 2 participants 3 messages May 20, 2008 – May 21, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix Bug 1253

Hi,

This patch solves Bug 1253.

Haicheng, could you try this patch?

Best regards,
Kan

tools/python/xen/xend/XendConfig.py +5 -4
diff -r e66aefdfedcc tools/python/xen/xend/XendConfig.py
@@ -1143,10 +1143,11 @@ class XendConfig(dict):
                 if o_dev_type == 'vbd' or o_dev_type == 'tap':
                     blkdev_file = blkdev_uname_to_file(dev_uname)
                     o_dev_uname = sxp.child_value(o_dev_info, 'uname')
-                    o_blkdev_file = blkdev_uname_to_file(o_dev_uname)
-                    if blkdev_file == o_blkdev_file:
-                        raise XendConfigError('The file "%s" is already used' %
-                                              blkdev_file)
+                    if o_dev_uname != None:
+                        o_blkdev_file = blkdev_uname_to_file(o_dev_uname)
+                        if blkdev_file == o_blkdev_file:
+                            raise XendConfigError('The file "%s" is already used' %
+                                                  blkdev_file)
                     o_blkdev_name = sxp.child_value(o_dev_info, 'dev')
                     o_devid = self._blkdev_name_to_number(o_blkdev_name)
                     if o_devid != None and devid == o_devid:

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#2 lore raw
Quoted 7 lines · Haicheng
Quoted 6 lines · Masaki Kanno

Hi,

This patch solves Bug 1253.

Haicheng, could you try this patch?

Quoted 8 lines
Quoted 4 lines

Best regards,
Kan

Bug 1253 is fixed by this patch, thanks.

-- haicheng

Hi Haicheng,

Thanks for your testing.

Kan