]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_repair: don't guess about failure reason in phase6
authorEric Sandeen <sandeen@redhat.com>
Thu, 10 Mar 2022 14:11:12 +0000 (09:11 -0500)
committerEric Sandeen <sandeen@sandeen.net>
Thu, 10 Mar 2022 14:11:12 +0000 (09:11 -0500)
commit12518245fe6599ed32127bfc49fb1f0f0d3c4c66
tree398f62d8191971215cdbce776fa0e813ee1b7c42
parentc10023e4f85916dbb9f77c365dbc4f2577b77348
xfs_repair: don't guess about failure reason in phase6

There are many error messages in phase 6 which say
"filesystem may be out of space," when in reality the failure could
have been corruption or some other issue.  Rather than guessing, and
emitting a confusing and possibly-wrong message, use the existing
res_failed() for any xfs_trans_alloc failures, and simply print the
error number in the other cases.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
repair/phase6.c