All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Darrick J. Wong" <djwong@kernel.org>
To: Andrey Albershteyn <aalbersh@kernel.org>
Cc: hch@infradead.org, tytso@mit.edu, linux-xfs@vger.kernel.org
Subject: Re: [PATCH 9/9] mkfs: allow specification of default options via configuration file
Date: Thu, 10 Sep 2026 09:06:55 -0700	[thread overview]
Message-ID: <20260910160655.GD6238@frogsfrogsfrogs> (raw)
In-Reply-To: <aqLNT49FybG7qnp2@aalbersh-thinkpadx1carbongen13.rmtcz.csb>

On Thu, Sep 10, 2026 at 05:37:38PM +0200, Andrey Albershteyn wrote:
> On 2026-09-10 08:17:05, Darrick J. Wong wrote:
> > On Thu, Sep 10, 2026 at 01:23:09PM +0200, Andrey Albershteyn wrote:
> > > On 2026-09-08 23:02:35, Darrick J. Wong wrote:
> > > > From: Darrick J. Wong <djwong@kernel.org>
> > > > 
> > > > Ted asked for the ability to set default mkfs options, but to retain the
> > > > ability respecify options via a separate configuration file or cli
> > > > options.  This would be useful for running fstests with the default
> > > > featureset of (say) Linux 5.15 LTS, while still allowing individual
> > > > testcases to provide their own overrides.  It's certainly less messy
> > > > than what Ted does today, which is a bash script that copies the desired
> > > > config file and changes things.
> > > > 
> > > > Cc: tytso@mit.edu
> > > > Cc: hch@infradead.org
> > > > Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
> > > > ---
> > > >  man/man8/mkfs.xfs.8.in |   16 ++++-
> > > >  mkfs/xfs_mkfs.c        |  158 ++++++++++++++++++++++++++++++++++++++++++------
> > > >  2 files changed, 151 insertions(+), 23 deletions(-)
> > > > 
> > > > 
> > > > diff --git a/man/man8/mkfs.xfs.8.in b/man/man8/mkfs.xfs.8.in
> > > > index fb62d579a26a2d..d915e72330304b 100644
> > > > --- a/man/man8/mkfs.xfs.8.in
> > > > +++ b/man/man8/mkfs.xfs.8.in
> > > > @@ -152,10 +152,22 @@ .SH OPTIONS
> > > >  .BI \-c " configuration_file_option"
> > > >  This option specifies the files that mkfs configuration will be obtained from.
> > > >  The valid
> > > > -.I configuration_file_option
> > > > -is:
> > > > +.I configuration_file_options
> > > > +are:
> > > >  .RS 1.2i
> > > >  .TP
> > > > +.BI defaults= name
> > > > +Default configuration options will be sourced from the file specified by the
> > > > +.I name
> > > > +option string.
> > > > +This option can be use either an absolute or relative path to the configuration
> > > > +file to be read.
> > > > +Sample configuration files can be found in @mkfs_cfg_dir@.
> > > 
> > > Shouldn't this also mention makecfg?
> > 
> > Err, what do you mean?  The patch adding makecfg to mkfs has its own
> > manpage update:
> 
> I mean that there're sample configs or you can create one with
> makecfg. Just a convenient reference to let users know about
> possibility

Oh.  Yes.  I've rewritten this section to read:

"Default configuration options will be sourced from the file specified
by the name option string. This option can be use either an absolute or
relative path to the configuration file to be read. Options speci‐ fied
through the default configuration file can be overridden by a
configuration file specified via options= or by command line arguments,
in that order.

"Sample configuration files can be found in @mkfs_cfg_dir@. This option
also accepts configuration files generated by the makecfg suboption
below, or by the makecfg subcommand of xfs_db and xfs_spaceman."

How does that sound?

--D

> -- 
> - Andrey
> 

  reply	other threads:[~2026-09-10 16:06 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260910160655.GD6238@frogsfrogsfrogs \
    --to=djwong@kernel.org \
    --cc=aalbersh@kernel.org \
    --cc=hch@infradead.org \
    --cc=linux-xfs@vger.kernel.org \
    --cc=tytso@mit.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.