OS Manuals

/usr/bin/cache_check

Tools for checking, repairing and dumping dm-thin, dm-cache and dm-era metadata

From thin-provisioning-tools 1.3.4-r5 (enterprise-packages), captured 2026-11-08 by running cache_check --help (exit 0). permalink

Validates cache metadata on a device or file.

Usage: cache_check [OPTIONS] <INPUT>

Arguments:
  <INPUT>  Specify the input device to check

Options:
      --auto-repair              Auto repair trivial issues
      --clear-needs-check-flag   Clears the 'needs_check' flag in the superblock
  -h, --help                     Print help
      --ignore-non-fatal-errors  Only return a non-zero exit code if a fatal error is found.
  -q, --quiet                    Suppress output messages, return only exit code.
      --skip-discards            Don't check the discard bitset
      --skip-hints               Don't check the hint array
      --skip-mappings            Don't check the mapping array
      --super-block-only         Only check the superblock
  -V, --version                  Print version
Options (10)
OptionDescriptionSource
--auto-repairAuto repair trivial issueshelp
--clear-needs-check-flagClears the 'needs_check' flag in the superblock.help + man
-h, --helpPrint help and exit.help + man
--ignore-non-fatal-errorsOnly return a non-zero exit code if a fatal error is found.help
-q, --quietSuppress output messages, return only exit code.help + man
--skip-discardsSkip checking of the discard bits in the metadata.help + man
--skip-hintsSkip checking of the policy hint values metadata.help + man
--skip-mappingsDon't check the mapping arrayhelp
--super-block-onlyOnly check the superblock.help + man
-V, --versionOutput version information and exit.help + man
Examples (1) from the manual page, untested

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.