Support 'array device' type for Xyratex enclosures

This commit is contained in:
2026-03-07 02:35:13 +00:00
parent 9b93eedbc8
commit e2bd413041

View File

@@ -118,7 +118,7 @@ def _parse_slot_number(entry: Path) -> int | None:
# Bare numeric directory — check the type file to confirm it's a device slot
if name.isdigit():
entry_type = _read_sysfs(entry / "type")
if entry_type not in ("device", "disk"):
if entry_type not in ("device", "disk", "array device"):
return None
# Prefer the 'slot' file for the actual slot number
slot_val = _read_sysfs(entry / "slot")