ldoktor/autotest — comment on commit 2ccf461fa5af8b36528fb0494fc8e1e24f3e114f
File: client/tests/kvm/tests/cgroup.py line 92
By lmr:

Actually instead of parsing ls output, you can just resort to the APIs os.major and os.minor:

http://docs.python.org/library/os.html

os.minor(device)
Extract the device minor number from a raw device number (usually the st_dev or st_rdev field from stat).

New in version 2.3.

So you probably want to get rid of this function and use the os APIs.