]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_scrub_all.timer: don't run if /var/lib/xfsprogs is readonly
authorDarrick J. Wong <djwong@kernel.org>
Mon, 27 Jan 2025 21:36:34 +0000 (13:36 -0800)
committerAndrey Albershteyn <aalbersh@kernel.org>
Wed, 29 Jan 2025 09:30:58 +0000 (10:30 +0100)
commitff12f3956648a03b89a270a8a4a2236e570be6f8
tree09129fe946a39e15729ab0054271ef574b2c766f
parent3eb8c349c5cda8f95ef390b1b08cc05328896ad8
xfs_scrub_all.timer: don't run if /var/lib/xfsprogs is readonly

The xfs_scrub_all program wants to write a state file into the package
state dir to keep track of how recently it performed a media scan.
Don't allow the systemd timer to run if that path isn't writable.

Cc: linux-xfs@vger.kernel.org # v6.10.0
Fixes: 267ae610a3d90f ("xfs_scrub_all: enable periodic file data scrubs automatically")
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
scrub/Makefile
scrub/xfs_scrub_all.timer [deleted file]
scrub/xfs_scrub_all.timer.in [new file with mode: 0644]