]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
mkfs: enable online repair if all backrefs are enabled
authorDarrick J. Wong <djwong@kernel.org>
Sun, 22 Feb 2026 22:41:18 +0000 (14:41 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 9 Apr 2026 22:30:18 +0000 (15:30 -0700)
commit8aed3354e42933ccfc8ca870f9a0911efe0c3a3d
tree4fe1a0056d38ba06fa5cd0df337998fb2e9ebbfd
parent505afcfda5c5d50a7f00dbb1e6e06ca74f985876
mkfs: enable online repair if all backrefs are enabled

If all backreferences are enabled in the filesystem, then enable online
repair by default if the user didn't supply any other autofsck setting.
Users might as well get full self-repair capability if they're paying
for the extra metadata.

Note that it's up to each distro to enable the systemd services
according to their own service activation policies.  Debian policy is to
enable all systemd services at package installation but they don't
enable online fsck in their Kconfig so the services won't activate.
RHEL and SUSE policy requires sysadmins to enable them explicitly unless
the OS vendor also ships a systemd preset file enabling the services.
Distros without systemd won't get any of the systemd services,
obviously.

Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
mkfs/xfs_mkfs.c