Add ZFS drive state (ONLINE/FAULTED/DEGRADED) to UI

This commit is contained in:
2026-03-07 04:44:31 +00:00
parent cea4db53fd
commit a25ce4ae21
5 changed files with 29 additions and 7 deletions

View File

@@ -95,6 +95,7 @@ async def get_overview():
uncorrectable_errors=sd.get("uncorrectable_errors"),
zfs_pool=pool_map.get(sd["device"], {}).get("pool"),
zfs_vdev=pool_map.get(sd["device"], {}).get("vdev"),
zfs_state=pool_map.get(sd["device"], {}).get("state"),
health_status=health_status,
)
elif s["populated"]: