Expand description
§Filesystem-level operations: metadata, sync, label, and resize
Operations that apply to a btrfs filesystem as a whole rather than to any individual device or subvolume: querying filesystem info (UUID, device count, node size), syncing pending writes to disk, reading/writing the human-readable label, and resizing a device within the filesystem.
Structs§
- Filesystem
Info - Information about a mounted btrfs filesystem, as returned by
BTRFS_IOC_FS_INFO. - Resize
Args - Arguments for a resize operation.
Enums§
- Resize
Amount - The target size for a resize operation.
Functions§
- filesystem_
info - Query information about the btrfs filesystem referred to by
fd. - label_
get - Read the label of the btrfs filesystem referred to by
fd. - label_
set - Set the label of the btrfs filesystem referred to by
fd. - resize
- Resize a device within the btrfs filesystem referred to by
fd. - start_
sync - Asynchronously start a sync on the btrfs filesystem referred to by
fd. - sync
- Force a sync on the btrfs filesystem referred to by
fdand wait for it to complete. - wait_
sync - Wait for a previously started transaction to complete.