From: Darrick J. Wong Date: Fri, 12 Jan 2024 02:07:05 +0000 (-0800) Subject: xfs_scrub_fail: return the failure status of the mailer program X-Git-Tag: v6.6.0~2^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=731c95408dc8667e2616b4b79e0d6c89aec1b936;p=thirdparty%2Fxfsprogs-dev.git 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 --- 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]}"