On 21/11/2026 at 10:04, Holger Wansing wrote:
I found commit c2d2b5e6 [1]
"Set btrfs fstab passno to zero, as there is no btrfs fsck scripts."
But we have fsck.btrfs for years now.
Shouldn't that be changed, to allow for automatic filesystem checks?
Or is there a good reason to still leave them disabled?
From fsck.btrfs(8) man page:
NAME
fsck.btrfs - do nothing, successfully
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.
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.