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§
- Scrub
Progress - Progress counters for a scrub operation, as returned by
BTRFS_IOC_SCRUBorBTRFS_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
devidwithin the filesystem referred to byfd. - scrub_
start - Start a scrub on the device identified by
devidwithin the filesystem referred to byfd.