Skip to content

xfsprogs/repair: sparse inode chunks cleanups

Brian Foster linux-xfs 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4repair: access helpers for on-disk inobt record freecountrepair/incore.h repair/phase5.c repair/scan.c+38 -170 replies
2/4repair: helper for inode chunk alignment and start/end ino number verificationrepair/scan.c+93 -740 replies
3/4repair: helper to import on-disk inobt records to in-core treesrepair/scan.c+91 -1080 replies
4/4repair: helper to transition inode blocks to inode staterepair/dino_chunks.c+39 -520 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] xfsprogs/repair: sparse inode chunks cleanups

Hi all,

This is a small cleanup series for some of the repair code touched by the sparse inode chunks feature, in response to review comments in the following thread:

	http://oss.sgi.com/archives/xfs/2015-06/msg00053.html

It primarily creates a few helper functions for hunks of code executed multiple times or code that is common between the increasingly similar but separate inobt and finobt record scanning code. For much of the latter code, the only difference between the separate functions is the error message output to indicate which tree is affected by a problem. Therefore, I abstracted out the inobt name and factored out some helpers that can perform the appropriate checks regardless of the tree type.

This series is purely cleanup and should not alter functionality in any way. Thoughts?

Brian

Brian Foster (4):
repair: access helpers for on-disk inobt record freecount
repair: helper for inode chunk alignment and start/end ino number
verification
repair: helper to import on-disk inobt records to in-core trees
repair: helper to transition inode blocks to inode state

 repair/dino_chunks.c |  91 ++++++-------
 repair/incore.h      |  28 ++++
 repair/phase5.c      |  12 +-
 repair/scan.c        | 377 +++++++++++++++++++++++++--------------------------
 4 files changed, 259 insertions(+), 249 deletions(-)
Signature · 6 lines
1.9.3

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