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:
parent
b3c127091d
commit
dfa9e7c0df
@ -139,6 +139,9 @@ def block_name_to_majorminor(name):
|
|||||||
elif name.startswith("md"):
|
elif name.startswith("md"):
|
||||||
disk = False
|
disk = False
|
||||||
major = 9
|
major = 9
|
||||||
|
elif name.startswith("dm-"):
|
||||||
|
disk = False
|
||||||
|
major = 253
|
||||||
else:
|
else:
|
||||||
# Unknown device
|
# Unknown device
|
||||||
return (0, 0)
|
return (0, 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user