mbox series

[PATCHSET,v4,00/10] xfs: add the ability to flag a fs for repair

Message ID 161284380403.3057868.11153586180065627226.stgit@magnolia (mailing list archive)
Headers show
Series xfs: add the ability to flag a fs for repair | expand

Message

Darrick J. Wong Feb. 9, 2021, 4:10 a.m. UTC
Hi all,

This series adds a new incompat feature flag so that we can force a
sysadmin to run xfs_repair on a filesystem before mounting.  This will
be used in conjunction with v5 feature upgrades.

v2: tweak the "can't upgrade" behavior and repair messages
v3: improve documentation, define error codes for the upgrade process, and
    only force repair if NEEDSREPAIR is set
v4: move all the upgrader code to xfs_repair per Eric suggestion

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.

--D

kernel git tree:
https://git.kernel.org/cgit/linux/kernel/git/djwong/xfs-linux.git/log/?h=needsrepair

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

fstests git tree:
https://git.kernel.org/cgit/linux/kernel/git/djwong/xfstests-dev.git/log/?h=needsrepair
---
 db/check.c           |    5 ++
 db/sb.c              |   13 ++++++
 db/xfs_admin.sh      |   15 ++++---
 include/xfs_mount.h  |    1 
 libxfs/init.c        |   25 ++++++------
 man/man8/xfs_admin.8 |   30 ++++++++++++++
 repair/agheader.c    |   21 ++++++++++
 repair/agheader.h    |    2 +
 repair/dir2.c        |    3 +
 repair/globals.c     |    3 +
 repair/globals.h     |    4 ++
 repair/phase1.c      |   28 +++++++++++++
 repair/phase6.c      |    7 +++
 repair/xfs_repair.c  |  107 ++++++++++++++++++++++++++++++++++++++++++++++++--
 14 files changed, 241 insertions(+), 23 deletions(-)