linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Theodore Tso <tytso@MIT.EDU>
To: Eric Sandeen <sandeen@redhat.com>
Cc: linux-ext4@vger.kernel.org
Subject: Re: [E2FSPROGS, RFC] New mke2fs types parsing
Date: Tue, 18 Mar 2008 07:01:45 -0400	[thread overview]
Message-ID: <20080318110145.GQ8368@mit.edu> (raw)
In-Reply-To: <47DF5045.1000108@redhat.com>

On Tue, Mar 18, 2008 at 12:16:53AM -0500, Eric Sandeen wrote:
> Well, I think that what I'm suggesting (but it's late, and I'm tired, so
> it's hard for me to tell for sure... ;) is that there is no special
> anything.  You simply take the specified -T arguments in order, and use
> that as the search/override order for any setting found in the stanzas
> specified.  This would probably be simplest to code, actually, as well
> as simplest to document, and even most powerful/flexible for the user.
> 
> But, I suppose I can live with
> 
>      -T [fs_type,][size_type,]user_type[,additional_type...]
> 
> which is reasonably clear, though... we just need to document that there
> are 7 special stanza names in 2 categories, which the code will put
> there *for* you if you don't put it them the right place, yourself.
> It's just, IMHO, a more complicated and restricted specification for the
> option.

Well, the problem is that we need to be compatible with previous
behavior, where the size type could be set automatically, and where
the filesystem type was intuited from /sbin/mke2fs.ext3.  So it was
clear that

	/sbin/mkfs.ext4 /dev/sda1

should be equivalent to 

	/sbin/mke2fs -T ext4 /dev/sda

But in that case, then what should this mean:

	/sbin/mkfs.ext4 -T news /dev/sda1

The user very clearly wanted an ext4 filesystem, so we need to
give him the feature flag settings in the ext4 stanza, but she probably
also wanted inode ratio setting implied by -T news.

-----

If this is too confusing, one of the things which we *could* do is
decouple the filesystem size from everything else.  "mke2fs -t" is a
deprecated alias for "mke2fs -c".  We could make "/sbin/mkfs.ext4"
equivalent to "mke2fs -t ext4".  Then we don't have to explain how
the filesystem type handling prepends onto the -T arguments.

If we do that, then we could just say that the size_type (floppy,
small, default) is only used if there is no -T option at all.  I would
probably still do the chaining, just because I think it's a cool
feature, but documenting it becomes simpler because it removes a lot
of the special cases.

I rejected this approach originally because it would mean reusing the
-t option right away.  But maybe this would be easier for users to
understand, and easier to document in the man pages, and maybe that's
an overriding consideration.

Regards,

						- Ted

  reply	other threads:[~2008-03-18 11:02 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-20 14:06 [E2FSPROGS, RFC] New mke2fs types parsing Theodore Ts'o
2008-02-20 18:51 ` Eric Sandeen
2008-02-20 22:20   ` Theodore Tso
2008-02-20 22:28     ` Eric Sandeen
2008-02-21  8:52     ` Andreas Dilger
2008-02-21 13:35       ` Theodore Tso
2008-03-17 21:29     ` Eric Sandeen
2008-03-18  2:20       ` Theodore Tso
2008-03-18  3:23         ` Eric Sandeen
2008-03-18  4:23           ` Theodore Tso
2008-03-18  5:16             ` Eric Sandeen
2008-03-18 11:01               ` Theodore Tso [this message]
2008-03-18 13:11                 ` Eric Sandeen
2008-03-18 13:52                   ` Theodore Tso
2008-03-18 16:06                     ` Eric Sandeen
2008-03-20 19:17                     ` Eric Sandeen
2008-03-20 20:49                       ` Theodore Tso
2008-03-19  3:36                 ` Andreas Dilger

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=20080318110145.GQ8368@mit.edu \
    --to=tytso@mit.edu \
    --cc=linux-ext4@vger.kernel.org \
    --cc=sandeen@redhat.com \
    /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).