]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_scrub: explicitly track corruptions, not just errors
authorDarrick J. Wong <darrick.wong@oracle.com>
Fri, 1 Nov 2019 21:55:06 +0000 (17:55 -0400)
committerEric Sandeen <sandeen@sandeen.net>
Fri, 1 Nov 2019 21:55:06 +0000 (17:55 -0400)
commitabc2e70db965430c8d83d8b76070cc75066dfe9f
tree17ddf15e5500aa8ab16cfc730ea86d6a6fa88431
parent420fad2d3d5d0b27c06d2431139d1b62a0f705d2
xfs_scrub: explicitly track corruptions, not just errors

Rename the @errors_found variable to @corruptions_found to make it
more explicit that we're tracking fs corruption issues.  Add a new
str_corrupt() function to handle communications that fall under this new
corruption classification.  str_error() now exists to log runtime errors
that do not have an associated errno code.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
scrub/common.c
scrub/common.h
scrub/phase4.c
scrub/phase5.c
scrub/phase6.c
scrub/scrub.c
scrub/xfs_scrub.c
scrub/xfs_scrub.h