Skip to main content

Module scrub

Module scrub 

Source
Expand description

§Data integrity scrubbing: verifying and repairing filesystem checksums

A scrub reads every data and metadata block on the filesystem, verifies it against its stored checksum, and repairs any errors it finds using redundant copies where available (e.g. RAID profiles). Scrubbing is the primary way to proactively detect silent data corruption.

Requires CAP_SYS_ADMIN.

Structs§

ScrubProgress
Progress counters for a scrub operation, as returned by BTRFS_IOC_SCRUB or BTRFS_IOC_SCRUB_PROGRESS.

Functions§

scrub_cancel
Cancel the scrub currently running on the filesystem referred to by fd.
scrub_progress
Query the progress of the scrub currently running on the device identified by devid within the filesystem referred to by fd.
scrub_start
Start a scrub on the device identified by devid within the filesystem referred to by fd.