Skip to main content

Module filesystem

Module filesystem 

Source
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§

FilesystemInfo
Information about a mounted btrfs filesystem, as returned by BTRFS_IOC_FS_INFO.
ResizeArgs
Arguments for a resize operation.

Enums§

ResizeAmount
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 fd and wait for it to complete.
wait_sync
Wait for a previously started transaction to complete.