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§
- Balance
Args - Per-type filter arguments for a balance operation, corresponding to
btrfs_balance_args. - Balance
Args Flags - Per-chunk-type filter flags (
btrfs_balance_args.flags). - Balance
Flags - Top-level flags for a balance operation (
btrfs_ioctl_balance_args.flags). - Balance
Progress - Progress counters returned by the kernel for an in-progress balance.
- Balance
State - State flags returned by the kernel (
btrfs_ioctl_balance_args.state).
Enums§
- Balance
Ctl - 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.