ia64/xen-unstable
changeset 1047:4ec435d7c966
bitkeeper revision 1.686 (400f2a0fOr4fmsss35howfO9K7Gurg)
XenoUtil.py:
Fix paremeter types in VBD setup.
XenoUtil.py:
Fix paremeter types in VBD setup.
author | kaf24@scramble.cl.cam.ac.uk |
---|---|
date | Thu Jan 22 01:40:31 2004 +0000 (2004-01-22) |
parents | c58d699fc01b |
children | 92b00b4495fa |
files | tools/xc/py/XenoUtil.py |
line diff
1.1 --- a/tools/xc/py/XenoUtil.py Wed Jan 21 19:50:52 2004 +0000 1.2 +++ b/tools/xc/py/XenoUtil.py Thu Jan 22 01:40:31 2004 +0000 1.3 @@ -122,7 +122,7 @@ def lookup_raw_partn(partition): 1.4 if line: 1.5 return [ { 'device' : blkdev_name_to_number(drive), 1.6 'start_sector' : 0, 1.7 - 'nr_sectors' : string.atol(line) * 2, 1.8 + 'nr_sectors' : int(line) * 2, 1.9 'type' : 'Disk' } ] 1.10 return None 1.11 1.12 @@ -136,8 +136,8 @@ def lookup_raw_partn(partition): 1.13 'size=\s*([0-9]+), Id=\s*(\S+).*$', line) 1.14 if m: 1.15 return [ { 'device' : blkdev_name_to_number(drive), 1.16 - 'start_sector' : string.atol(m.group(1)), 1.17 - 'nr_sectors' : string.atol(m.group(2)), 1.18 + 'start_sector' : int(m.group(1)), 1.19 + 'nr_sectors' : int(m.group(2)), 1.20 'type' : m.group(3) } ] 1.21 1.22 return None