[][src]Module libzfs::state

Get the current state of ZFS on a node

Uses a Libzfs handle to get state at that point. Collects into a struct that can be serialized using serde.

Functions

get_dataset_by_name

Given a dataset name, try to find it and convert it to a Dataset. The Result represents failure to find or convert the dataset.

get_imported_pools

Return all imported pools on this node. Returns Err if any imported pool fails conversion to Pool.

get_pool_by_name

Given a pool name, try to find it and convert it to a Pool. The Result represents failure to find or convert the pool.

get_pool_by_name_and_guid

Given a pool name and guid try to find it and convert it to a Pool. The Result represents failure to find or convert the pool.