Skip to content

xfs_admin: support upgrading v5 filesystems

Darrick J. Wong linux-xfs 5 versions – In review

Get series with b4
b4 am 161319522350.423010.5768275226481994478.stgit@magnolia

Versions newest first · linked by author and title

  1. v6 Latest5 patches 4 repliesIn review
  2. v52 patches 4 repliesSuperseded
  3. v42 patches 0 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v32 patches0 repliesSuperseded
v22 patches4 repliesSuperseded

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5man: mark all deprecated V4 format optionsman/man8/mkfs.xfs.8 man/man8/xfs_admin.8+26 -01 reply
2/5xfs_repair: allow upgrades to v5 filesystemsrepair/phase2.c+40 -02 replies
3/5xfs_admin: support adding features to V5 filesystemsdb/xfs_admin.sh man/man8/xfs_admin.8+26 -20 replies
4/5xfs_repair: enable inobtcount upgrade via repairman/man8/xfs_admin.8 repair/globals.c repair/globals.h +2 more+53 -11 reply
5/5xfs_repair: enable bigtime upgrade via repairman/man8/xfs_admin.8 repair/globals.c repair/globals.h +2 more+42 -00 replies

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchChristoph HellwigBrian Foster
1/5R-b
2/5R-b R-b
3/5R-b
4/5R-b R-b
5/5R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v6 thread

Cover letter [PATCHSET v6 0/5] xfs_admin: support upgrading v5 filesystems

Hi all,

This submission extends xfs_repair and xfs_admin to support adding the inode btree counter and bigtime features to an existing v5 filesystem. The first three patches lay the groundwork in both tools for performing upgrades, and the last two patches add the ability to add features.

v2: Rebase to 5.10-rc0
v3: respond to reviewer comments
v4: document which kernel version these new features showed up in
v5: move all the upgrader code to xfs_repair per Eric suggestion, which
eliminates a bunch of fragile db/admin/repair coordination.
v6: update mkfs/admin/repair manpages to identify CLI options that apply
only to V4 fses and are therefore deprecated

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

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

---
 db/xfs_admin.sh      |    6 ++-
 man/man8/mkfs.xfs.8  |   16 +++++++++
 man/man8/xfs_admin.8 |   47 +++++++++++++++++++++++++
 repair/globals.c     |    2 +
 repair/globals.h     |    2 +
 repair/phase2.c      |   93 ++++++++++++++++++++++++++++++++++++++++++++++++++
 repair/xfs_repair.c  |   22 ++++++++++++
 7 files changed, 186 insertions(+), 2 deletions(-)