Linux XFS filesystem development
 help / color / mirror / Atom feed
* [PATCHSET 2/2] xfsprogs: generate mkfs.xfs config files
@ 2026-08-31 23:26 Darrick J. Wong
  2026-08-31 23:26 ` [PATCH 1/5] mkfs: automatically upgrade autofsck earlier Darrick J. Wong
                   ` (5 more replies)
  0 siblings, 6 replies; 14+ messages in thread
From: Darrick J. Wong @ 2026-08-31 23:26 UTC (permalink / raw)
  To: djwong, aalbersh; +Cc: linux-xfs

Hi all,

Every year, we generate a new mkfs.xfs configuration file to match the
stable feature set of that year's LTS kernel.  Right now I just do this
by copying the old configuration file and tweaking the values by hand.

Instead, let's create some library code that can emit the same
configuration variables that we've been shipping for some years now,
and hook that up to mkfs/xfs_db/xfs_spaceman so that we can generate
them either from the mkfs defaults or pre-existing filesystems.

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

With a bit of luck, this should all go splendidly.
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=generate-cfgfiles
---
Commits in this patchset:
 * mkfs: automatically upgrade autofsck earlier
 * mkfs: print config file for a given mkfs configuration
 * xfs_db: print configuration file for mounted filesystems
 * xfs_spaceman: print configuration file for mounted filesystems
 * xfs_admin: print configuration file for mounted filesystems
---
 libfrog/fsgeom.h        |    3 
 db/info.c               |  193 ++++++++++++++++++++++++
 db/xfs_admin.sh         |   15 ++
 libfrog/fsgeom.c        |  376 +++++++++++++++++++++++++++++++++++++++++++++++
 man/man8/mkfs.xfs.8.in  |    6 +
 man/man8/xfs_admin.8    |    7 +
 man/man8/xfs_db.8       |    6 +
 man/man8/xfs_spaceman.8 |    6 +
 mkfs/xfs_mkfs.c         |   62 +++++++-
 spaceman/info.c         |  136 +++++++++++++++++
 10 files changed, 798 insertions(+), 12 deletions(-)


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

end of thread, other threads:[~2026-09-03 21:49 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-31 23:26 [PATCHSET 2/2] xfsprogs: generate mkfs.xfs config files Darrick J. Wong
2026-08-31 23:26 ` [PATCH 1/5] mkfs: automatically upgrade autofsck earlier Darrick J. Wong
2026-09-03 11:17   ` Andrey Albershteyn
2026-08-31 23:27 ` [PATCH 2/5] mkfs: print config file for a given mkfs configuration Darrick J. Wong
2026-09-03 11:14   ` Andrey Albershteyn
2026-09-03 21:49     ` Darrick J. Wong
2026-08-31 23:27 ` [PATCH 3/5] xfs_db: print configuration file for mounted filesystems Darrick J. Wong
2026-09-03 11:20   ` Andrey Albershteyn
2026-08-31 23:27 ` [PATCH 4/5] xfs_spaceman: " Darrick J. Wong
2026-09-03 11:20   ` Andrey Albershteyn
2026-08-31 23:27 ` [PATCH 5/5] xfs_admin: " Darrick J. Wong
2026-09-03 11:21   ` Andrey Albershteyn
2026-08-31 23:34 ` [PATCH RFC] xfs: test mkfs.xfs config file generation Darrick J. Wong
2026-09-03 11:21   ` Andrey Albershteyn

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