From: Darrick J. Wong <djwong@xxxxxxxxxx> 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 <djwong@xxxxxxxxxx> --- scrub/xfs_scrub_fail | 1 + 1 file changed, 1 insertion(+) diff --git a/scrub/xfs_scrub_fail b/scrub/xfs_scrub_fail index 4ec7e48836a..fbe30cbc4c6 100755 --- a/scrub/xfs_scrub_fail +++ b/scrub/xfs_scrub_fail @@ -56,3 +56,4 @@ So sorry, the automatic xfs_scrub of ${mntpoint} on ${hostname} failed. A log of what happened follows: ENDL systemctl status --full --lines 4294967295 "xfs_scrub@${mntpoint_esc}") | "${mailer}" -t -i +exit "${PIPESTATUS[1]}"