Skip to main content

Module balance

Module balance 

Source
Expand description

§Balance operations: redistributing data and metadata across devices

A balance rewrites chunks across the filesystem’s devices according to optional filter criteria (usage threshold, device selection, profile conversion). It is also used to change the RAID profile of a block group type, or to reduce the number of devices in a filesystem.

Requires CAP_SYS_ADMIN.

Structs§

BalanceArgs
Per-type filter arguments for a balance operation, corresponding to btrfs_balance_args.
BalanceArgsFlags
Per-chunk-type filter flags (btrfs_balance_args.flags).
BalanceFlags
Top-level flags for a balance operation (btrfs_ioctl_balance_args.flags).
BalanceProgress
Progress counters returned by the kernel for an in-progress balance.
BalanceState
State flags returned by the kernel (btrfs_ioctl_balance_args.state).

Enums§

BalanceCtl
Control command for balance_ctl.

Functions§

balance
Start or resume a balance operation on the filesystem referred to by fd.
balance_ctl
Send a control command to a running balance operation on the filesystem referred to by fd.
balance_progress
Query the current balance state and progress on the filesystem referred to by fd.