direct-io.hg
changeset 1826:44e286624053
bitkeeper revision 1.1108.2.1 (40fbe925tXfT_97FffvS1h8aPcGujA)
Don't trust sfdisk -- leave determining a blkdev's lenth to the backend driver.
Don't trust sfdisk -- leave determining a blkdev's lenth to the backend driver.
author | iap10@labyrinth.cl.cam.ac.uk |
---|---|
date | Mon Jul 19 15:30:45 2004 +0000 (2004-07-19) |
parents | 1a488e40456a |
children | 6c3bbbf7e1cf |
files | tools/python/xen/xend/XendDomainInfo.py |
line diff
1.1 --- a/tools/python/xen/xend/XendDomainInfo.py Sun Jul 18 16:38:30 2004 +0000 1.2 +++ b/tools/python/xen/xend/XendDomainInfo.py Mon Jul 19 15:30:45 2004 +0000 1.3 @@ -100,7 +100,7 @@ def lookup_raw_partn(name): 1.4 if line: 1.5 return [ { 'device' : blkdev_name_to_number(p), 1.6 'start_sector' : long(0), 1.7 - 'nr_sectors' : long(line) * 2, 1.8 + 'nr_sectors' : long(1L<<63), 1.9 'type' : 'Disk' } ] 1.10 else: 1.11 # see if this is a hex device number