]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
e2scrub_all: don't even reap if the config file doesn't allow it
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 5 Nov 2019 01:54:14 +0000 (17:54 -0800)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 10 Nov 2019 01:29:12 +0000 (20:29 -0500)
commit333268d65d26fbb2d22f7a8b6ac797babcc69543
treed179746f5aff4bbe236af75c531182a4adb71529
parentb99ffaffc94b0395d865d1e2410cdb2e9a0bbdde
e2scrub_all: don't even reap if the config file doesn't allow it

Dave Chinner complains that the automated on-boot e2scrub reaping takes
a long time (because the lvs command can take a while to run) even
though the automated e2scrub is disabled via e2scrub.conf on his
systems.

We still need the reaping service to kill off stale e2scrub snapshots
after a crash, but it's unnecessary to annoy everyone with slow bootup.
Because we can look for the e2scrub snapshots in /dev/mapper, let's
skip reaping if periodic e2scrub is disabled unless we find evidence of
e2scrub snapshots in /dev.

Reported-by: Dave Chinner <david@fromorbit.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
scrub/e2scrub_all.in