Linux XFS filesystem development
 help / color / mirror / Atom feed
* [PATCHSET v2] xfsprogs: generate mkfs.xfs config files
@ 2026-09-04  1:29 Darrick J. Wong
  2026-09-04  1:30 ` [PATCH 1/8] mkfs: automatically upgrade autofsck earlier Darrick J. Wong
                   ` (7 more replies)
  0 siblings, 8 replies; 10+ messages in thread
From: Darrick J. Wong @ 2026-09-04  1:29 UTC (permalink / raw)
  To: djwong, aalbersh; +Cc: hch, tytso, 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.

v2: add rvb tags, add the defaults file patch from before, add a few
more feature bits for spice

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
 * makecfg: handle metadir quota options
 * makecfg: handle old V4 options that are almost always on by default
 * xfs_admin: print configuration file for mounted filesystems
 * mkfs: allow specification of default options via configuration file
---
 libfrog/fsgeom.h        |   12 +
 db/info.c               |  192 +++++++++++++++++++
 db/xfs_admin.sh         |   15 +
 libfrog/fsgeom.c        |  482 +++++++++++++++++++++++++++++++++++++++++++++++
 man/man8/mkfs.xfs.8.in  |   24 ++
 man/man8/xfs_admin.8    |    7 +
 man/man8/xfs_db.8       |    6 +
 man/man8/xfs_spaceman.8 |    6 +
 mkfs/xfs_mkfs.c         |  220 +++++++++++++++++++--
 spaceman/info.c         |  183 ++++++++++++++++++
 10 files changed, 1113 insertions(+), 34 deletions(-)

Unreviewed patches in this series:

[PATCHSET v2] xfsprogs: generate mkfs.xfs config files
  [PATCH 5/8] makecfg: handle metadir quota options
  [PATCH 6/8] makecfg: handle old V4 options that are almost always on
  [PATCH 8/8] mkfs: allow specification of default options via

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

end of thread, other threads:[~2026-09-04  3:29 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-04  1:29 [PATCHSET v2] xfsprogs: generate mkfs.xfs config files Darrick J. Wong
2026-09-04  1:30 ` [PATCH 1/8] mkfs: automatically upgrade autofsck earlier Darrick J. Wong
2026-09-04  1:30 ` [PATCH 2/8] mkfs: print config file for a given mkfs configuration Darrick J. Wong
2026-09-04  1:30 ` [PATCH 3/8] xfs_db: print configuration file for mounted filesystems Darrick J. Wong
2026-09-04  1:30 ` [PATCH 4/8] xfs_spaceman: " Darrick J. Wong
2026-09-04  1:31 ` [PATCH 5/8] makecfg: handle metadir quota options Darrick J. Wong
2026-09-04  3:29   ` Darrick J. Wong
2026-09-04  1:31 ` [PATCH 6/8] makecfg: handle old V4 options that are almost always on by default Darrick J. Wong
2026-09-04  1:31 ` [PATCH 7/8] xfs_admin: print configuration file for mounted filesystems Darrick J. Wong
2026-09-04  1:31 ` [PATCH 8/8] mkfs: allow specification of default options via configuration file 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