FSCK.BTRFS(8) Btrfs Manual FSCK.BTRFS(8)
fsck.btrfs - do nothing, successfully
fsck.btrfs [-aApy] [<device>...]
fsck.btrfs is a type of utility that should exist for any filesystem and is called during system setup when the corresponding /etc/fstab entries contain non-zero value for fs_passno, see fstab(5) for more. Traditional filesystems need to run their respective fsck utility in case the filesystem was not unmounted cleanly and the log needs to be replayed before mount. This is not needed for BTRFS. You should set fs_passno to 0. If you wish to check the consistency of a BTRFS filesystem or repair a damaged filesystem, see btrfs-check(8). By default filesystem consistency is checked, the repair mode is enabled via the --repair option (use with care!).
The options are all the same and detect if fsck.btrfs is executed in non-interactive mode and exits with success, otherwise prints a message about btrfs check.
There are two possible exit codes returned: 0 No error 8 Operational error, eg. device does not exist
btrfs(8), fsck(8), fstab(5)
This page is part of the btrfs-progs (btrfs filesystem tools) project. Information about the project can be found at ⟨https://btrfs.wiki.kernel.org/index.php/Btrfs_source_repositories⟩. If you have a bug report for this manual page, see ⟨https://btrfs.wiki.kernel.org/index.php/Problem_FAQ#How_do_I_report_bugs_and_issues.3F⟩. This page was obtained from the project's upstream Git repository ⟨git://git.kernel.org/pub/scm/linux/kernel/git/kdave/btrfs-progs.git⟩ on 2020-07-14. (At that time, the date of the most recent commit that was found in the repository was 2020-07-02.) If you discover any rendering problems in this HTML version of the page, or you believe there is a better or more up-to-date source for the page, or you have corrections or improvements to the information in this COLOPHON (which is not part of the original manual page), send a mail to firstname.lastname@example.org Btrfs v4.6.1 05/16/2020 FSCK.BTRFS(8)
Pages that refer to this page: systemd-fsck(8), systemd-fsck-root.service(8), systemd-fsck.service(8), systemd-fsck@.service(8)