Support 'array device' type for Xyratex enclosures
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user