linux-xfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Theodore Ts'o <tytso@mit.edu>
To: "Darrick J. Wong" <darrick.wong@oracle.com>
Cc: "Luis R. Rodriguez" <mcgrof@kernel.org>,
	Eric Sandeen <sandeen@sandeen.net>,
	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 22:17:57 -0500	[thread overview]
Message-ID: <20180227031757.GB24294@thunk.org> (raw)
In-Reply-To: <20180227002550.GH19312@magnolia>

So number one, unlike everyone else, I didn't reinvent the wheel.  I
grabbed the same wheel I wrote for MIT Kerberos years before.  :-)

Number two, for examples for I wanted the nesting, from MIT Kerberos:

[realms]
         ATHENA.MIT.EDU = {
             kdc = kerberos.mit.edu
             kdc = kerberos-1.mit.edu
             kdc = kerberos-2.mit.edu:750
             admin_server = kerberos.mit.edu
             master_kdc = kerberos.mit.edu
             default_domain = mit.edu
         }
         EXAMPLE.COM = {
             kdc = kerberos.example.com
             kdc = kerberos-1.example.com
             admin_server = kerberos.example.com
         }

And from the file system world, from /etc/mke2fs.conf:

[fs_types]
	ext3 = {
		features = has_journal
	}
	ext4 = {
		features = has_journal,extent,huge_file,flex_bg,metadata_csum,64bit,dir_nlink,extra_isize
		inode_size = 256
	}
	small = {
		blocksize = 1024
		inode_size = 128
		inode_ratio = 4096
	}
	...


It's been handy inside Google since we have different file system
configs for different use cases, so we do things like:

	mke2fs -T foo-use /dev/sdX

and
	mke2fs -T bar-use /dev/sdX


... where foo-use and bar-use would be subsections under fs_types.

But hey, to be clear, I'm not the one trying to claim everyone should
use my library (even though it's the best looking and above-average,
ala Lake Wobegon. :-)

       	       	     	    	     	  - Ted

  reply	other threads:[~2018-02-27  3:18 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
2018-02-27  3:17         ` Theodore Ts'o [this message]
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=20180227031757.GB24294@thunk.org \
    --to=tytso@mit.edu \
    --cc=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 \
    /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).