Linux XFS filesystem development
 help / color / mirror / Atom feed
* [PATCHSET v3] xfsprogs: generate mkfs.xfs config files
@ 2026-09-09  6:00 Darrick J. Wong
  2026-09-09  6:00 ` [PATCH 1/9] mkfs: automatically upgrade autofsck earlier Darrick J. Wong
                   ` (8 more replies)
  0 siblings, 9 replies; 32+ messages in thread
From: Darrick J. Wong @ 2026-09-09  6:00 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 metadata/v4 feature bits for spice
v3: add more file-related options and default config files

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
 * makecfg: add a few more file related options
 * xfs_admin: print configuration file for mounted filesystems
 * mkfs: allow specification of default options via configuration file
---
 libfrog/fsgeom.h        |   12 +
 configure.ac            |    1 
 db/info.c               |  201 ++++++++++++++++
 db/xfs_admin.sh         |   15 +
 include/builddefs.in    |    1 
 libfrog/fsgeom.c        |  594 +++++++++++++++++++++++++++++++++++++++++++++++
 m4/package_libcdev.m4   |   19 ++
 man/man8/mkfs.xfs.8.in  |   23 ++
 man/man8/xfs_admin.8    |    7 +
 man/man8/xfs_db.8       |    6 
 man/man8/xfs_spaceman.8 |    6 
 mkfs/xfs_mkfs.c         |  213 ++++++++++++++---
 spaceman/Makefile       |    4 
 spaceman/info.c         |  218 +++++++++++++++++
 14 files changed, 1286 insertions(+), 34 deletions(-)

Unreviewed patches in this series:

[PATCHSET v3] xfsprogs: generate mkfs.xfs config files
  [PATCH 5/9] makecfg: handle metadir quota options
  [PATCH 6/9] makecfg: handle old V4 options that are almost always on
  [PATCH 7/9] makecfg: add a few more file related options
  [PATCH 9/9] mkfs: allow specification of default options via

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

end of thread, other threads:[~2026-09-11 17:58 UTC | newest]

Thread overview: 32+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-09  6:00 [PATCHSET v3] xfsprogs: generate mkfs.xfs config files Darrick J. Wong
2026-09-09  6:00 ` [PATCH 1/9] mkfs: automatically upgrade autofsck earlier Darrick J. Wong
2026-09-11 15:12   ` Christoph Hellwig
2026-09-09  6:00 ` [PATCH 2/9] mkfs: print config file for a given mkfs configuration Darrick J. Wong
2026-09-11 15:14   ` Christoph Hellwig
2026-09-11 16:08     ` Darrick J. Wong
2026-09-09  6:01 ` [PATCH 3/9] xfs_db: print configuration file for mounted filesystems Darrick J. Wong
2026-09-11 15:14   ` Christoph Hellwig
2026-09-09  6:01 ` [PATCH 4/9] xfs_spaceman: " Darrick J. Wong
2026-09-11 15:15   ` Christoph Hellwig
2026-09-09  6:01 ` [PATCH 5/9] makecfg: handle metadir quota options Darrick J. Wong
2026-09-09 13:15   ` Andrey Albershteyn
2026-09-11 15:48   ` Christoph Hellwig
2026-09-11 17:58     ` Darrick J. Wong
2026-09-09  6:01 ` [PATCH 6/9] makecfg: handle old V4 options that are almost always on by default Darrick J. Wong
2026-09-09 13:15   ` Andrey Albershteyn
2026-09-11 15:49   ` Christoph Hellwig
2026-09-11 16:03     ` Darrick J. Wong
2026-09-09  6:02 ` [PATCH 7/9] makecfg: add a few more file related options Darrick J. Wong
2026-09-09 13:16   ` Andrey Albershteyn
2026-09-11 15:49   ` Christoph Hellwig
2026-09-11 16:04     ` Darrick J. Wong
2026-09-09  6:02 ` [PATCH 8/9] xfs_admin: print configuration file for mounted filesystems Darrick J. Wong
2026-09-11 15:50   ` Christoph Hellwig
2026-09-09  6:02 ` [PATCH 9/9] mkfs: allow specification of default options via configuration file Darrick J. Wong
2026-09-10 11:23   ` Andrey Albershteyn
2026-09-10 15:17     ` Darrick J. Wong
2026-09-10 15:37       ` Andrey Albershteyn
2026-09-10 16:06         ` Darrick J. Wong
2026-09-10 16:38           ` Andrey Albershteyn
2026-09-11  4:43   ` [PATCH v3.1 " Darrick J. Wong
2026-09-11 15:51     ` Christoph Hellwig

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