提交 7716ee54 编写于 作者: D Darrick J. Wong

xfs: bail out of scrub immediately if scan incomplete

If a scrubber cannot complete its check and signals an incomplete check,
we must bail out immediately without updating health status, trying a
repair, etc. because our scan is incomplete and we therefore do not know
much more.
Signed-off-by: NDarrick J. Wong <djwong@kernel.org>
Reviewed-by: NChristoph Hellwig <hch@lst.de>
上级 05237032
...@@ -517,7 +517,7 @@ xfs_scrub_metadata( ...@@ -517,7 +517,7 @@ xfs_scrub_metadata(
goto out; goto out;
sc.flags |= XCHK_TRY_HARDER; sc.flags |= XCHK_TRY_HARDER;
goto retry_op; goto retry_op;
} else if (error) } else if (error || (sm->sm_flags & XFS_SCRUB_OFLAG_INCOMPLETE))
goto out_teardown; goto out_teardown;
xchk_update_health(&sc); xchk_update_health(&sc);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册