linux-xfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/7] xfs_scrub: clean up error classifications
@ 2019-10-22 18:48 Darrick J. Wong
  2019-10-22 18:48 ` [PATCH 1/7] xfs_scrub: fix misclassified error reporting Darrick J. Wong
                   ` (6 more replies)
  0 siblings, 7 replies; 19+ messages in thread
From: Darrick J. Wong @ 2019-10-22 18:48 UTC (permalink / raw)
  To: sandeen, darrick.wong; +Cc: linux-xfs

Hi all,

In reviewing how xfs_scrub classifies errors, I noticed that there were
numerous things that could be improved.

First, I fixed some of the error reports that were simply in the wrong
category.

Next, I cleaned up some of the internal logic and error class tables in
preparation for future patches.

Then, I noticed that corruptions and some of the runtime errors were
being munged into a single errors_found counter.  I made this the
explicit corruptions counter, which can be incremented via
str_corrupt().  I then changed str_error() to mean runtime errors.

Having done that, I was then able to reclassify some str_info calls that
are really reporting runtime errors and therefore should use str_error.

Finally, I introduce a new category of errors that are unfixable by
scrub, and assign to this class all the media errors since there's
nothing XFS can do.

If you're going to start using this mess, you probably ought to just
pull from my git trees, which are linked below.

This is an extraordinary way to destroy everything.  Enjoy!
Comments and questions are, as always, welcome.

--D

xfsprogs git tree:
https://git.kernel.org/cgit/linux/kernel/git/djwong/xfsprogs-dev.git/log/?h=scrub-reclassify-errors

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2019-11-01 22:15 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-22 18:48 [PATCH 0/7] xfs_scrub: clean up error classifications Darrick J. Wong
2019-10-22 18:48 ` [PATCH 1/7] xfs_scrub: fix misclassified error reporting Darrick J. Wong
2019-11-01 20:59   ` Eric Sandeen
2019-10-22 18:49 ` [PATCH 2/7] xfs_scrub: simplify post-run reporting logic Darrick J. Wong
2019-11-01 21:05   ` Eric Sandeen
2019-10-22 18:49 ` [PATCH 3/7] xfs_scrub: clean up error level table Darrick J. Wong
2019-11-01 21:11   ` Eric Sandeen
2019-10-22 18:49 ` [PATCH 4/7] xfs_scrub: explicitly track corruptions, not just errors Darrick J. Wong
2019-11-01 21:15   ` Eric Sandeen
2019-10-22 18:49 ` [PATCH 5/7] xfs_scrub: promote some of the str_info to str_error calls Darrick J. Wong
2019-11-01 21:21   ` Eric Sandeen
2019-10-22 18:49 ` [PATCH 6/7] xfs_scrub: refactor xfs_scrub_excessive_errors Darrick J. Wong
2019-11-01 21:25   ` Eric Sandeen
2019-11-01 21:46     ` Darrick J. Wong
2019-11-01 21:50   ` Eric Sandeen
2019-10-22 18:49 ` [PATCH 7/7] xfs_scrub: create a new category for unfixable errors Darrick J. Wong
2019-11-01 21:32   ` Eric Sandeen
2019-11-01 22:10     ` Darrick J. Wong
2019-11-01 22:15   ` Eric Sandeen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).