linux-xfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Darrick J. Wong" <darrick.wong@oracle.com>
To: "Luis R. Rodriguez" <mcgrof@kernel.org>
Cc: Eric Sandeen <sandeen@sandeen.net>, Tso Ted <tytso@mit.edu>,
	Dave Chinner <david@fromorbit.com>,
	Christoph Hellwig <hch@infradead.org>, Jan Kara <jack@suse.cz>,
	NeilBrown <neilb@suse.com>, Jeff Mahoney <jeffm@suse.com>,
	linux-xfs <linux-xfs@vger.kernel.org>
Subject: Re: [RFC] mkfs config file bikeshed now!
Date: Mon, 26 Feb 2018 16:25:50 -0800	[thread overview]
Message-ID: <20180227002550.GH19312@magnolia> (raw)
In-Reply-To: <CAB=NE6U+7hmRhrkkd1v=rEKrcY+NNf61jL9B4nm=kDbTPvy--w@mail.gmail.com>

On Mon, Feb 26, 2018 at 04:15:06PM -0800, Luis R. Rodriguez wrote:
> On Mon, Feb 26, 2018 at 4:10 PM, Eric Sandeen <sandeen@sandeen.net> wrote:
> >
> >
> > On 2/26/18 6:01 PM, Luis R. Rodriguez wrote:
> >>  IIRC with e2fsprogs profile parsers we could end up with something
> >> like:
> >>
> >> [defaults]
> >> foo=0
> >> bar=0
> >> [stuff]
> >>       some_release =  {
> >>               foo=1
> >>               bar=2
> >>       }
> >>       new_release = {
> >>               foo=2
> >>       }
> >
> > I can't tell what that means.  What's "stuff?"  Why would we need this sort of
> > nesting?
> 
> I'll leave the crafty examples to Darrick as he had some complex ideas
> in mind. On my part I was happy to not have to deal with the namespace
> stuff -- however I realized some may want it, so I had to mention both
> libraries libini_config and e2fsprogs profile parser do support it,
> just in different ways.

Well I /did/ have an even stupider parser in mind if segmented config
files got shot down...

/etc/xfs/mkfs/uek5.conf:
data.agcount 32
metadata.reflink 0

# mkfs.xfs -t uek5 /dev/sda

open("/etc/xfs/mkfs/${t_optarg}.conf")...

Then we can parse it with a simple fgets/strtok loop to tokenize the
input lines and feed them to the geometry arg parser.  But I'll go read
your paper all the way through first before I scribble more. :)

--D

>  Luis
> --
> To unsubscribe from this list: send the line "unsubscribe linux-xfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2018-02-27  0:26 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-26 22:42 [RFC] mkfs config file bikeshed now! Darrick J. Wong
2018-02-26 23:42 ` Eric Sandeen
2018-02-26 23:56   ` Darrick J. Wong
2018-02-27  0:01     ` Eric Sandeen
2018-02-27  0:24     ` Eric Sandeen
2018-02-26 23:43 ` Eric Sandeen
2018-02-27  0:01 ` Luis R. Rodriguez
2018-02-27  0:10   ` Eric Sandeen
2018-02-27  0:15     ` Luis R. Rodriguez
2018-02-27  0:25       ` Darrick J. Wong [this message]
2018-02-27  3:17         ` Theodore Ts'o
2018-02-27  3:45           ` Theodore Ts'o
2018-02-27 13:43             ` Jan Tulak
2018-02-27 22:14               ` Dave Chinner
2018-02-27 18:11           ` Luis R. Rodriguez

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=20180227002550.GH19312@magnolia \
    --to=darrick.wong@oracle.com \
    --cc=david@fromorbit.com \
    --cc=hch@infradead.org \
    --cc=jack@suse.cz \
    --cc=jeffm@suse.com \
    --cc=linux-xfs@vger.kernel.org \
    --cc=mcgrof@kernel.org \
    --cc=neilb@suse.com \
    --cc=sandeen@sandeen.net \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).