]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
e2scrub: honor fstrim setting in e2scrub.conf
authorSamuel Smith <satlug@net153.net>
Sat, 28 Jun 2025 05:14:15 +0000 (00:14 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 2 Jul 2025 01:57:11 +0000 (21:57 -0400)
The systemd service unconditionally passes -t to e2scrub, forcing
fstrim to run after every scrub regardless of the fstrim setting
in /etc/e2scrub.conf. Removing the hardcoded flag will allow users to
control the behavior via the configuration file.

Signed-off-by: Samuel Smith <satlug@net153.net>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Link: https://lore.kernel.org/r/20250628051415.3015410-1-satlug@net153.net
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
scrub/e2scrub@.service.in

index 6425263c2bc6189dca2ccbe3f8204a1336fac3b0..3c9893c521ccb44558efcda3a12f32e408fdcf8f 100644 (file)
@@ -16,5 +16,5 @@ User=root
 IOSchedulingClass=idle
 CPUSchedulingPolicy=idle
 Environment=SERVICE_MODE=1
-ExecStart=@root_sbindir@/e2scrub -t %f
+ExecStart=@root_sbindir@/e2scrub %f
 SyslogIdentifier=%N