mbox series

[PATCHSET,v24.0,0/8] xfs_scrub: fixes for systemd services

Message ID 167243871097.717702.15336500890922415647.stgit@magnolia (mailing list archive)
Headers show
Series xfs_scrub: fixes for systemd services | expand

Message

Darrick J. Wong Dec. 30, 2022, 10:18 p.m. UTC
Hi all,

Fix some glaring deficiencies in the systemd services that were created
to manage background scans.  First, we need to fix various errors in
pathname escaping, because systemd does /not/ like slashes in service
names.  We also need to fix small bugs in the mailer scripts so that
scrub failures are reported effectively.  Finally, fix xfs_scrub_all
to deal with systemd restarts causing it to think that a scrub has
finished before the service actually finishes.

If you're going to start using this mess, you probably ought to just
pull from my git trees, which are linked below.

This is an extraordinary way to destroy everything.  Enjoy!
Comments and questions are, as always, welcome.

--D

xfsprogs git tree:
https://git.kernel.org/cgit/linux/kernel/git/djwong/xfsprogs-dev.git/log/?h=scrub-service-fixes
---
 debian/rules                     |    1 
 scrub/xfs_scrub@.service.in      |    5 ++
 scrub/xfs_scrub_all.cron.in      |    5 ++
 scrub/xfs_scrub_all.in           |   83 ++++++++++++++++++++++++++++++++------
 scrub/xfs_scrub_all.service.in   |    5 ++
 scrub/xfs_scrub_all.timer        |    5 ++
 scrub/xfs_scrub_fail             |   37 ++++++++++++++++-
 scrub/xfs_scrub_fail@.service.in |    5 ++
 8 files changed, 130 insertions(+), 16 deletions(-)