* [PATCH] tools/python: fix TypeError for 17903:0728459b3c8d
@ 2008-06-30 7:28 KUWAMURA Shin'ya
2008-06-30 7:31 ` Chris Lalancette
0 siblings, 1 reply; 2+ messages in thread
From: KUWAMURA Shin'ya @ 2008-06-30 7:28 UTC (permalink / raw)
To: xen-devel
[-- Attachment #1: Type: Text/Plain, Size: 365 bytes --]
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
Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com>
--
KUWAMURA Shin'ya
[-- Attachment #2: fix-blkdev_name_to_number.patch --]
[-- Type: Text/Plain, Size: 988 bytes --]
# HG changeset patch
# User KUWAMURA Shin'ya <kuwa@jp.fujitsu.com>
# 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
Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com>
diff -r 0972fc23b504 -r 0063343e6fcb tools/python/xen/util/blkif.py
--- a/tools/python/xen/util/blkif.py Sat Jun 28 16:29:00 2008 +0100
+++ b/tools/python/xen/util/blkif.py Mon Jun 30 16:13:33 2008 +0900
@@ -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
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] tools/python: fix TypeError for 17903:0728459b3c8d
2008-06-30 7:28 [PATCH] tools/python: fix TypeError for 17903:0728459b3c8d KUWAMURA Shin'ya
@ 2008-06-30 7:31 ` Chris Lalancette
0 siblings, 0 replies; 2+ messages in thread
From: Chris Lalancette @ 2008-06-30 7:31 UTC (permalink / raw)
To: KUWAMURA Shin'ya; +Cc: xen-devel
KUWAMURA Shin'ya wrote:
> 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-06-30 7:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-30 7:28 [PATCH] tools/python: fix TypeError for 17903:0728459b3c8d KUWAMURA Shin'ya
2008-06-30 7:31 ` Chris Lalancette
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.