From 731c95408dc8667e2616b4b79e0d6c89aec1b936 Mon Sep 17 00:00:00 2001 From: "Darrick J. Wong" Date: Thu, 11 Jan 2024 18:07:05 -0800 Subject: [PATCH] xfs_scrub_fail: return the failure status of the mailer program We should return the exit code of the mailer program sending the scrub failure reports, since that's much more important to anyone watching the system. Signed-off-by: Darrick J. Wong Reviewed-by: Christoph Hellwig --- scrub/xfs_scrub_fail.in | 1 + 1 file changed, 1 insertion(+) diff --git a/scrub/xfs_scrub_fail.in b/scrub/xfs_scrub_fail.in index 281af8a95..e12803066 100755 --- a/scrub/xfs_scrub_fail.in +++ b/scrub/xfs_scrub_fail.in @@ -33,3 +33,4 @@ So sorry, the automatic xfs_scrub of ${mntpoint} on ${hostname} failed. A log of what happened follows: ENDL systemctl status --full --lines 4294967295 "${scrub_svc}") | "${mailer}" -t -i +exit "${PIPESTATUS[1]}" -- 2.47.3