Skip to content

xfs_db, xfs_repair: improve CRC error detection

Dave Chinner linux-xfs 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest9 patches 10 repliesIn review
  2. v29 patches 6 repliesSuperseded
  3. v19 patches 24 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9db: don't claim unchecked CRCs are correctdb/fprint.c db/io.c db/io.h +1 more+26 -40 replies
2/9db: verify buffer on type changedb/io.c db/io.h db/type.c+30 -40 replies
3/9repair: ensure prefetched buffers have CRCs validatedinclude/libxfs.h libxfs/rdwr.c repair/prefetch.c+48 -192 replies
4/9repair: detect and correct CRC errors in directory blocksrepair/phase6.c+75 -190 replies
5/9repair: detect CRC errors in AG headersrepair/scan.c+49 -343 replies
6/9repair: report AG btree verifier errorsrepair/scan.c+24 -10 replies
7/9repair: remove more dirv1 leftoversrepair/dinode.c repair/dinode.h+0 -2450 replies
8/9repair: handle remote symlink CRC errorsrepair/dinode.c+11 -12 replies
9/9repair: detect and handle attribute tree CRC errorsrepair/attr_repair.c+37 -83 replies

Reviews trailers per patch

All 9 patches have a Reviewed-by or Acked-by.

PatchChristoph HellwigBrian Foster
1/9R-b
2/9R-b
3/9R-b R-b
4/9R-b
5/9R-b
6/9R-b
7/9R-b
8/9R-b R-b
9/9R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH 0/9 v3] xfs_db, xfs_repair: improve CRC error detection

Hi folks,

This is the third version of the patchset originally posted here:

http://oss.sgi.com/archives/xfs/2014-04/msg00374.html

This version corrects the issues that Christoph commented on in the second version.

Version 3:
- factored out libxfs_readbuf_verify()
- LIBXFS_B_UNCHECKED flag setting/clearing cleaned up
- cleaned up dirty checks on AG header scan
- cleaned up error path goto stack on AG header scan
- added no_modify check to remote symlink buffer bad CRC rewrite.

Version 2:
- move LIBXFS_B_UNCHECKED to the correct patch (patch 1)
- set_cur_iotype assumes a valid type (patch 2)
- comments added to explain the way LIBXFS_B_UNCHECKED and dirty buffers are supposed to interact (patch 3)
- fixed comment flow and added separate "crc_error" return variable to dir_read_buf() (patch 4)
- reworked CRC error handling of AG headers (patch 5)
- readded missing dirty/no_modify assert (patch 6)
- fixed typos (patch 8)
- fixed "repair" variable initialisation flow (patch 9)
- fixed dirty buffer accounting on the cursor to dirty the correct buffer on CRC errors, added some clarifying comments (patch 9)

Comments and testing welcome!

-Dave.

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs