mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-01-22 00:04:31 +03:00
74753de989
Create a script that looks for mounted bcachefs filesystems and tries to run as many of them in parallel as possible without two different scrubbers hitting the same low level block device. Signed-off-by: Darrick J. Wong <djwong@kernel.org>
17 lines
375 B
SYSTEMD
17 lines
375 B
SYSTEMD
# SPDX-License-Identifier: GPL-2.0
|
|
#
|
|
# Copyright (C) 2023-2024 Oracle. All Rights Reserved.
|
|
# Author: Darrick J. Wong <djwong@kernel.org>
|
|
|
|
[Unit]
|
|
Description=Periodic bcachefsck for All Filesystems
|
|
|
|
[Timer]
|
|
# Run on Sunday at 3:10am, to avoid running afoul of DST changes
|
|
OnCalendar=Sun *-*-* 03:10:00
|
|
RandomizedDelaySec=60
|
|
Persistent=true
|
|
|
|
[Install]
|
|
WantedBy=timers.target
|