ia64/xen-unstable

changeset 2774:bd14e7f131d0

bitkeeper revision 1.1159.1.305 (41821c04Hgz7FcHvApbz2HGtGaBtjA)

blkif.py:
Distinguish between /dev/hda1 and /dev/hda11 when processing mount output.
author cl349@freefall.cl.cam.ac.uk
date Fri Oct 29 10:31:32 2004 +0000 (2004-10-29)
parents a36dce4dc9a6
children ad13896e776c 144012985ae9 199614e47bee
files tools/python/xen/xend/server/blkif.py
line diff
     1.1 --- a/tools/python/xen/xend/server/blkif.py	Fri Oct 29 10:26:10 2004 +0000
     1.2 +++ b/tools/python/xen/xend/server/blkif.py	Fri Oct 29 10:31:32 2004 +0000
     1.3 @@ -26,7 +26,7 @@ def check_mounted(self, name):
     1.4      mode = None
     1.5      name = expand_dev_name(name)
     1.6      lines = os.popen('mount 2>/dev/null').readlines()
     1.7 -    exp = re.compile('^' + name + '.*[\(,]r(?P<mode>[ow])[,\)]')
     1.8 +    exp = re.compile('^' + name + ' .*[\(,]r(?P<mode>[ow])[,\)]')
     1.9      for line in lines:
    1.10          pm = exp.match(line)
    1.11          if not pm: continue