+ """Retrieve a major and minor number for a specific path/name.
+
+ The last word after the '/' in name is used to search for the device.
+ """
name = name.split('/')[-1]
maps = dm.maps()
for map in maps:
@@ -70,6 +74,10 @@ def getDevice(name):
return (map.dev.major, map.dev.minor)