Add device-mapper devices to name->(major,minor) mapping

qvm-block will still not list device-mapper devices, but it would be
much easier to modify it.
This commit is contained in:
Marek Marczykowski-Górecki 2013-11-16 01:29:50 +01:00
parent b3c127091d
commit dfa9e7c0df

View File

@ -139,6 +139,9 @@ def block_name_to_majorminor(name):
elif name.startswith("md"):
disk = False
major = 9
elif name.startswith("dm-"):
disk = False
major = 253
else:
# Unknown device
return (0, 0)