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

@@ -71,9 +71,11 @@ async def get_zfs_pool_map() -> dict[str, dict]:
parts = stripped.split()
dev_path = parts[0]
try:
dev_state = parts[1] if len(parts) > 1 else None
info = {
"pool": current_pool,
"vdev": current_vdev or current_pool,
"state": dev_state,
}
# Resolve symlink and map the device
real = os.path.realpath(dev_path)