public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCHSET v27.0 0/4] xfsprogs: force rebuilding of metadata
@ 2023-11-22 23:07 Darrick J. Wong
  2023-11-22 23:07 ` [PATCH 1/4] xfs_io: support passing the FORCE_REBUILD flag to online repair Darrick J. Wong
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Darrick J. Wong @ 2023-11-22 23:07 UTC (permalink / raw)
  To: djwong, cem; +Cc: Carlos Maiolino, linux-xfs

Hi all,

This patchset adds a new IFLAG to the scrub ioctl so that userspace can
force a rebuild of an otherwise consistent piece of metadata.  This will
eventually enable the use of online repair to relocate metadata during a
filesystem reorganization (e.g. shrink).  For now, it facilitates stress
testing of online repair without needing the debugging knobs to be
enabled.

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-force-rebuild

xfsprogs git tree:
https://git.kernel.org/cgit/linux/kernel/git/djwong/xfsprogs-dev.git/log/?h=repair-force-rebuild

fstests git tree:
https://git.kernel.org/cgit/linux/kernel/git/djwong/xfstests-dev.git/log/?h=repair-force-rebuild
---
 io/scrub.c        |   24 ++++++++++++++-------
 man/man8/xfs_io.8 |    3 +++
 scrub/phase1.c    |   28 ++++++++++++++++++++++++
 scrub/scrub.c     |   61 ++++++++++++++++++++++++++++-------------------------
 scrub/scrub.h     |    1 +
 scrub/vfs.c       |    2 +-
 scrub/xfs_scrub.c |    3 +++
 scrub/xfs_scrub.h |    1 +
 8 files changed, 85 insertions(+), 38 deletions(-)


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

end of thread, other threads:[~2023-11-27 18:54 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-22 23:07 [PATCHSET v27.0 0/4] xfsprogs: force rebuilding of metadata Darrick J. Wong
2023-11-22 23:07 ` [PATCH 1/4] xfs_io: support passing the FORCE_REBUILD flag to online repair Darrick J. Wong
2023-11-23  6:30   ` Christoph Hellwig
2023-11-27 18:54     ` Darrick J. Wong
2023-11-22 23:07 ` [PATCH 2/4] xfs_scrub: handle spurious wakeups in scan_fs_tree Darrick J. Wong
2023-11-23  6:31   ` Christoph Hellwig
2023-11-22 23:08 ` [PATCH 3/4] xfs_scrub: don't retry unsupported optimizations Darrick J. Wong
2023-11-23  6:32   ` Christoph Hellwig
2023-11-22 23:08 ` [PATCH 4/4] xfs_scrub: try to use XFS_SCRUB_IFLAG_FORCE_REBUILD Darrick J. Wong
2023-11-23  6:33   ` Christoph Hellwig

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