Add ZFS drive state (ONLINE/FAULTED/DEGRADED) to UI
This commit is contained in:
@@ -23,5 +23,6 @@ async def get_drive_detail(device: str):
|
||||
if zfs_info:
|
||||
data["zfs_pool"] = zfs_info["pool"]
|
||||
data["zfs_vdev"] = zfs_info["vdev"]
|
||||
data["zfs_state"] = zfs_info.get("state")
|
||||
|
||||
return DriveDetail(**data)
|
||||
|
||||
@@ -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"]:
|
||||
|
||||
Reference in New Issue
Block a user