Skip to main content

Module stratis

Module stratis 

Source
Expand description

Stratis D-Bus integration for pool-aware replication and snapshots. Stratis D-Bus integration for pool-aware replication.

Queries stratisd via the system D-Bus to resolve pool/filesystem metadata, monitor pool capacity, create/prune filesystem snapshots, and provide rich storage telemetry for the Governor and metrics subsystem.

stratisd D-Bus API: org.storage.stratis3 on the system bus. Reference: https://stratis-storage.github.io/DBusAPIReference.pdf

Structs§

PoolCapacity
Pool capacity summary.
StratisPoolInfo
Rich Stratis pool metadata resolved from D-Bus.
StratisSnapshot
A Stratis filesystem snapshot entry.

Enums§

StratisError
Stratis-related errors.

Functions§

create_stratis_snapshot
Create a Stratis filesystem snapshot via D-Bus.
enumerate_stratis_snapshots
Enumerate all Stratis filesystem snapshots in a pool.
is_stratisd_available
Check if stratisd is available on the system D-Bus.
prune_stratis_snapshots
Prune old foxing-created Stratis snapshots, keeping the N most recent. Only prunes snapshots whose name starts with prefix. Tagged snapshots (name contains user-defined tags) are never pruned.
query_pool_capacity
Query pool physical capacity.
resolve_stratis_target
Resolve a mount path or devnode to its Stratis pool and filesystem via D-Bus.