Xfs not properly showing issues from exit code.

This commit is contained in:
dlandon
2024-06-30 09:26:26 -05:00
parent 65e67856bb
commit cd1b4031df

View File

@@ -21,6 +21,11 @@ case "$1" in
/sbin/xfs_repair $4 $2 &> /var/lib/xfs/check.status.$3 &
pid=$!
echo $pid > /var/lib/xfs/check.pid.$3
# Capture the exit code once xfs_repair completes
{
wait $pid
echo $? > /var/lib/xfs/check.status.$3.exit
} &
exit 0
;;
'status')