Add ZFS drive state (ONLINE/FAULTED/DEGRADED) to UI
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user