Skip to content

Commit a41bacb

Browse files
committed
enumerate md devices as well as dm devices
Signed-off-by: Zen <[email protected]>
1 parent c21f06e commit a41bacb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ugrd/fs/mounts.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
__author__ = 'desultory'
2-
__version__ = '4.15.2'
2+
__version__ = '4.15.3'
33

44
from pathlib import Path
55
from zenlib.util import contains, pretty_print
@@ -275,7 +275,7 @@ def get_dm_info(self) -> dict:
275275
return
276276

277277
for dm_device in (Path('/sys/devices/virtual/block').iterdir()):
278-
if dm_device.name.startswith('dm-'):
278+
if dm_device.name.startswith('dm-') or dm_device.name.startswith('md'):
279279
maj, minor = (dm_device / 'dev').read_text().strip().split(':')
280280
self['_dm_info'][dm_device.name] = {'name': (dm_device / 'dm/name').read_text().strip(),
281281
'major': maj,

0 commit comments

Comments
 (0)