fsck.btrfs(8)

SYNOPSIS 概要 

fsck.btrfs [-aApy] [<device>…]

DESCRIPTION 描述 

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.
fsck.btrfs 是一种应该存在于任何文件系统中的实用程序,在系统设置期间调用,当相应的 /etc/fstab 条目包含非零值的 fs_passno 时,参见 fstab(5) 了解更多信息。

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.
传统文件系统需要在文件系统未正常卸载时运行各自的 fsck 实用程序,并在挂载之前重新播放日志。对于 BTRFS 不需要这样做。您应将 fs_passno 设置为 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!).
如果您希望检查 BTRFS 文件系统的一致性或修复损坏的文件系统,请参阅 btrfs-check(8)。默认情况下,文件系统一致性会被检查,修复模式通过 --repair 选项启用(请谨慎使用!)。

OPTIONS 选项 

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.
这些选项都是相同的,如果以非交互模式执行 fsck.btrfs 并成功退出,则会检测到,否则会打印有关 btrfs 检查的消息。

EXIT STATUS 退出状态 

There are two possible exit codes returned:
有两种可能的退出代码返回:

0

No error 没有错误

8

Operational error, e.g. device does not exist
操作错误,例如设备不存在

FILES 文件 

/etc/fstab

SEE ALSO 参见 

btrfs(8), fsck(8), fstab(5)