public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCHSET v28.2 0/9] xfs: online repair of inodes and forks
@ 2023-12-13 22:51 Darrick J. Wong
  2023-12-13 22:53 ` [PATCH 1/9] xfs: disable online repair quota helpers when quota not enabled Darrick J. Wong
                   ` (8 more replies)
  0 siblings, 9 replies; 12+ messages in thread
From: Darrick J. Wong @ 2023-12-13 22:51 UTC (permalink / raw)
  To: djwong, hch, chandanbabu; +Cc: linux-xfs

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


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

end of thread, other threads:[~2023-12-14  4:50 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-13 22:51 [PATCHSET v28.2 0/9] xfs: online repair of inodes and forks Darrick J. Wong
2023-12-13 22:53 ` [PATCH 1/9] xfs: disable online repair quota helpers when quota not enabled Darrick J. Wong
2023-12-13 22:53 ` [PATCH 2/9] xfs: try to attach dquots to files before repairing them Darrick J. Wong
2023-12-13 22:54 ` [PATCH 3/9] xfs: add missing nrext64 inode flag check to scrub Darrick J. Wong
2023-12-13 22:54 ` [PATCH 4/9] xfs: dont cast to char * for XFS_DFORK_*PTR macros Darrick J. Wong
2023-12-14  4:46   ` Christoph Hellwig
2023-12-13 22:54 ` [PATCH 5/9] xfs: set inode sick state flags when we zap either ondisk fork Darrick J. Wong
2023-12-13 22:54 ` [PATCH 6/9] xfs: repair inode records Darrick J. Wong
2023-12-14  4:50   ` Christoph Hellwig
2023-12-13 22:55 ` [PATCH 7/9] xfs: zap broken inode forks Darrick J. Wong
2023-12-13 22:55 ` [PATCH 8/9] xfs: abort directory parent scrub scans if we encounter a zapped directory Darrick J. Wong
2023-12-13 22:55 ` [PATCH 9/9] xfs: skip the rmapbt search on an empty attr fork unless we know it was zapped Darrick J. Wong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox