mbox series

[PATCHSET,v28.2,0/9] xfs: online repair of inodes and forks

Message ID 170250783447.1399182.12936206088783796234.stgit@frogsfrogsfrogs (mailing list archive)
Headers show
Series xfs: online repair of inodes and forks | expand

Message

Darrick J. Wong Dec. 13, 2023, 10:51 p.m. UTC
Hi all,

In this series, online repair gains the ability to repair inode records.
To do this, we must repair the ondisk inode and fork information enough
to pass the iget verifiers and hence make the inode igettable again.
Once that's done, we can perform higher level repairs on the incore
inode.  The fstests counterpart of this patchset implements stress
testing of repair.

If you're going to start using this code, I strongly recommend pulling
from my git trees, which are linked below.

This has been running on the djcloud for months with no problems.  Enjoy!
Comments and questions are, as always, welcome.

--D

kernel git tree:
https://git.kernel.org/cgit/linux/kernel/git/djwong/xfs-linux.git/log/?h=repair-inodes-6.8
---
 fs/xfs/Makefile                    |    1 
 fs/xfs/libxfs/xfs_attr_leaf.c      |   13 
 fs/xfs/libxfs/xfs_attr_leaf.h      |    3 
 fs/xfs/libxfs/xfs_bmap.c           |   22 -
 fs/xfs/libxfs/xfs_bmap.h           |    2 
 fs/xfs/libxfs/xfs_dir2_priv.h      |    3 
 fs/xfs/libxfs/xfs_dir2_sf.c        |   13 
 fs/xfs/libxfs/xfs_format.h         |    2 
 fs/xfs/libxfs/xfs_health.h         |   10 
 fs/xfs/libxfs/xfs_inode_fork.c     |   33 +
 fs/xfs/libxfs/xfs_shared.h         |    2 
 fs/xfs/libxfs/xfs_symlink_remote.c |    8 
 fs/xfs/scrub/bmap.c                |  144 +++
 fs/xfs/scrub/common.c              |   28 +
 fs/xfs/scrub/common.h              |    8 
 fs/xfs/scrub/dir.c                 |   42 +
 fs/xfs/scrub/health.c              |   32 +
 fs/xfs/scrub/health.h              |    2 
 fs/xfs/scrub/inode.c               |   16 
 fs/xfs/scrub/inode_repair.c        | 1525 ++++++++++++++++++++++++++++++++++++
 fs/xfs/scrub/parent.c              |   17 
 fs/xfs/scrub/repair.c              |   57 +
 fs/xfs/scrub/repair.h              |   29 +
 fs/xfs/scrub/rtbitmap.c            |    4 
 fs/xfs/scrub/rtsummary.c           |    4 
 fs/xfs/scrub/scrub.c               |    2 
 fs/xfs/scrub/symlink.c             |   20 
 fs/xfs/scrub/trace.h               |  171 ++++
 fs/xfs/xfs_dir2_readdir.c          |    3 
 fs/xfs/xfs_health.c                |    8 
 fs/xfs/xfs_inode.c                 |   35 +
 fs/xfs/xfs_inode.h                 |    2 
 fs/xfs/xfs_symlink.c               |    3 
 fs/xfs/xfs_xattr.c                 |    6 
 34 files changed, 2185 insertions(+), 85 deletions(-)
 create mode 100644 fs/xfs/scrub/inode_repair.c