Skip to main content

Module zfs

Module zfs 

Source
Expand description

ZFS storage pool detection via zpool list.

Supported wherever the zpool binary is present (Linux with ZFS-on-Linux, macOS with OpenZFS). Returns an empty list if zpool is not installed — most systems don’t have ZFS, so a missing binary is not an error.

Functions§

detect_zpool
Detects imported ZFS pools and reports name, allocation, and health for each.
parse_zpool_list
Parses zpool list -H -p -o name,size,alloc,health (tab-separated, byte-exact sizes).