tools/python: fix TypeError for 17903:0728459b3c8d
PATCH 1/1 tools/python: fix TypeError for 17903:0728459b3c8d
Hi,
If `hda' is used in a domain config file and domain-0 has /dev/hda, creating the domain failed by TypeError:
File "//usr/lib/python/xen/xend/server/blkif.py", line 84, in
getDeviceDetails
(device_path, devid) = blkif.blkdev_name_to_number(dev)
TypeError: unpack non-sequence
Signature · 1 line
KUWAMURA Shin'ya
# HG changeset patch
# User KUWAMURA Shin'ya <[email protected]> # Date 1214810013 -32400
# Node ID 0063343e6fcb2d9501e2410cd7dff8981a301f26 # Parent 0972fc23b5041c8a29416b2875ae7d45faa66109 tools/python: fix TypeError for 17903:0728459b3c8d
If `hda' is used in domU config file and domain-0 has /dev/hda, creating a domain failed by TypeError:
File "//usr/lib/python/xen/xend/server/blkif.py", line 84, in
getDeviceDetails
(device_path, devid) = blkif.blkdev_name_to_number(dev)
TypeError: unpack non-sequence
tools/python/xen/util/blkif.py +1 -1
@@ -20,7 +20,7 @@ def blkdev_name_to_number(name): devnum = None try: - return os.stat(n).st_rdev + return (devname, os.stat(n).st_rdev) except Exception, ex: pass
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 10 lines · KUWAMURA Shin'ya
Hi,
If `hda' is used in a domain config file and domain-0 has
/dev/hda, creating the domain failed by TypeError:File "//usr/lib/python/xen/xend/server/blkif.py", line 84, in
getDeviceDetails
(device_path, devid) =blkif.blkdev_name_to_number(dev)
TypeError: unpack non-sequence
Arg. Yes, I had this originally, but somehow dropped it in my patch series. Thanks.
Chris Lalancette