# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1236265817 0
# Node ID 7ee8bbac10d68334a87809fb5a8f5ef1457889aa
# Parent 29cc9eef79394173b2974813fd909da29eb7276d
xend: blkif hda regexp fix
Signed-off-by: Michal Novotny <minovotn@xxxxxxxxxx>
---
tools/python/xen/util/blkif.py | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
diff -r 29cc9eef7939 -r 7ee8bbac10d6 tools/python/xen/util/blkif.py
--- a/tools/python/xen/util/blkif.py Thu Mar 05 15:06:06 2009 +0000
+++ b/tools/python/xen/util/blkif.py Thu Mar 05 15:10:17 2009 +0000
@@ -33,7 +33,7 @@ def blkdev_name_to_number(name):
major = scsi_major[((ord(n[7:8]) - ord('a') + 1) * 26 + (ord(n[8:9]) -
ord('a'))) / 16 ]
minor = (((ord(n[7:8]) - ord('a') + 1 ) * 26 + (ord(n[8:9]) -
ord('a'))) % 16) * 16 + int(n[9:] or 0)
devnum = major * 256 + minor
- elif re.match( '/dev/hd[a-t]([1-9]|[1-5][0-9]|6[0-3])?', n):
+ elif re.match( '/dev/hd[a-t]([1-9]|[1-5][0-9]|6[0-3])?$', n):
ide_majors = [ 3, 22, 33, 34, 56, 57, 88, 89, 90, 91 ]
major = ide_majors[(ord(n[7:8]) - ord('a')) / 2]
minor = ((ord(n[7:8]) - ord('a')) % 2) * 64 + int(n[8:] or 0)
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|