[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] Raise an exception if blkdev_name_to_number fails, to improve the error message.
# HG changeset patch # User Ewan Mellor <ewan@xxxxxxxxxxxxx> # Node ID cc6f0a3596fc691986d4eed8e6ec0ea8ee7b9780 # Parent f9446aa6c78632131be1c3042dcc3693e8828136 Raise an exception if blkdev_name_to_number fails, to improve the error message. Fix came from Glauber de Oliveira Costa, and is one half of xen-unstable 11831:f5321161c649fe4f07027250c4a1f3c4b5fc2ed9. Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx> --- tools/python/xen/xend/server/blkif.py | 3 +++ 1 files changed, 3 insertions(+) diff -r f9446aa6c786 -r cc6f0a3596fc tools/python/xen/xend/server/blkif.py --- a/tools/python/xen/xend/server/blkif.py Thu Oct 05 16:17:06 2006 +0100 +++ b/tools/python/xen/xend/server/blkif.py Sat Oct 28 17:58:00 2006 +0100 @@ -80,6 +80,9 @@ class BlkifController(DevController): 'acm_policy' : policy}) devid = blkif.blkdev_name_to_number(dev) + if not devid: + raise VmError('Unable to find number for device (%s)' % (dev)) + front = { 'virtual-device' : "%i" % devid, 'device-type' : dev_type } _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |