bitkeeper revision 1.1159.1.305 (41821c04Hgz7FcHvApbz2HGtGaBtjA)

blkif.py:
  Distinguish between /dev/hda1 and /dev/hda11 when processing mount output.
This commit is contained in:
cl349@freefall.cl.cam.ac.uk committed 2004-10-29 10:31:32 +00:00
1 parent 3d365f058d
commit d56277d652
1 file changed
+1 -1
+1 -1
View File
@@ -26,7 +26,7 @@ def check_mounted(self, name):
mode = None
name = expand_dev_name(name)
lines = os.popen('mount 2>/dev/null').readlines()
exp = re.compile('^' + name + '.*[\(,]r(?P<mode>[ow])[,\)]')
exp = re.compile('^' + name + ' .*[\(,]r(?P<mode>[ow])[,\)]')
for line in lines:
pm = exp.match(line)
if not pm: continue
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.