]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_scrub: create a new category for unfixable errors
authorDarrick J. Wong <darrick.wong@oracle.com>
Fri, 1 Nov 2019 22:04:21 +0000 (18:04 -0400)
committerEric Sandeen <sandeen@sandeen.net>
Fri, 1 Nov 2019 22:04:21 +0000 (18:04 -0400)
commit49e05cb05113c8afdbc975dec8f1bd6e94a42395
tree84cd1dd545e830b74154e46abc27d2cbd58c7695
parent059215441a51dadb78afd0daed31c896bac22870
xfs_scrub: create a new category for unfixable errors

There's nothing that xfs_scrub (or XFS) can do about media errors for
data file blocks -- the data are gone.  Create a new category for these
unfixable errors so that we don't advise the user to take further action
that won't fix the problem.

[sandeen: this error counter is only used for media errors today, but
there are tests in the code to accommodate potential future new types
of unfixable errors.]

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