mbox series

[PATCHSET,v11,0/7] xfs_repair: support parent pointers

Message ID 168080828258.617551.4008600376507330925.stgit@frogsfrogsfrogs (mailing list archive)
Headers show
Series xfs_repair: support parent pointers | expand

Message

Darrick J. Wong April 6, 2023, 7:16 p.m. UTC
Hi all,

This patchset implements offline checking and repair for parent
pointers.  We do this rather expensively by constructing a (per-AG)
master list of parent pointers for inodes rooted in that AG.  Next, we
walk each inode of that AG, construct an index of that file's parent
pointers, and then compare the file index against the relevant part of
the master index.  From there we can sync the parent pointers as needed.

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.
xfsprogs git tree:
https://git.kernel.org/cgit/linux/kernel/git/djwong/xfsprogs-dev.git/log/?h=pptrs-offline-repair
---
 libxfs/libxfs_api_defs.h |    7 
 libxfs/xfblob.c          |    9 
 libxfs/xfblob.h          |    2 
 repair/Makefile          |    6 
 repair/listxattr.c       |  271 ++++++++++
 repair/listxattr.h       |   15 +
 repair/phase6.c          |   41 +
 repair/pptr.c            | 1271 ++++++++++++++++++++++++++++++++++++++++++++++
 repair/pptr.h            |   17 +
 repair/strblobs.c        |  212 ++++++++
 repair/strblobs.h        |   24 +
 11 files changed, 1873 insertions(+), 2 deletions(-)
 create mode 100644 repair/listxattr.c
 create mode 100644 repair/listxattr.h
 create mode 100644 repair/pptr.c
 create mode 100644 repair/pptr.h
 create mode 100644 repair/strblobs.c
 create mode 100644 repair/strblobs.h