bitkeeper revision 1.1159.1.8 (4114e84532jMbVgxayKe_J9XghOtWw)

Allow vbd device names to be used with and without /dev/ prefix
This commit is contained in:
iap10@labyrinth.cl.cam.ac.uk committed 2004-08-07 14:33:41 +00:00
1 parent bbbc56fa30
commit d0aaf6018a
1 file changed
+3 -1
+3 -1
View File
@@ -83,7 +83,9 @@ def blkdev_name_to_number(name):
'hda') and return the device number used by the OS. """
if not re.match( '^/dev/', name ):
n = '/dev/' + name
n = '/dev/' + name
else:
n = name
try:
return os.stat(n).st_rdev
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.