From: Theodore Ts'o <tytso@mit.edu>
To: linux-ext4@vger.kernel.org
Subject: Re: Still about ext2/ext3 mount options while using ext4.ko driver
Date: Mon, 9 Dec 2013 19:13:53 -0500 [thread overview]
Message-ID: <20131210001353.GA19933@thunk.org> (raw)
In-Reply-To: <20131209212531.GB4296@orion.maiolino.org>
On Mon, Dec 09, 2013 at 07:25:31PM -0200, Carlos Maiolino wrote:
>
> But, there are still some mount options that IMHO needs a review of what should
> and shouldn't be allowed while using ext4 to mount ex2/3 filesystems.
>
> max_batch_time=5 #I'm not sure ir this has any gain for ext2 and if it might
> work well with ext3, any comments?
> min_batch_time=5 #same as above
>
> journal_ioprio=5 #doesn't make sense for ext2, but might be useful for ext3 FS?!
>
> journal=11 #doesn't make sense for ext2
>
> barrier=1 #doesn't make sense for ext2
>
> barrier #doesn't make sense for ext2
>
> nobarrier #doesn't make sense for ext2
>
> commit=5 #doesn't make sense for ext2
>
> abort #call ext4_abort(), devel usage only, and it fails to put ext2 FS on RO,
> if this should be kept enabled, I can look why ext2 keep RW after its use
>
These are all journal-related options, so they simply have no effect
for ext2 file systems. (The abort mount option is a test facility
which was introduced in the ext3 days to test whether or not the
journal abort feature worked correctly.) They don't make sense for
ext4 file systems that don't have a journal enabled, so maybe the
right thing to do is to either refuse the mount or print a warning
message indicating that the mount option is going to be ignored since
no journal is present.
> auto_da_alloc #ext4 only
>
> noauto_da_alloc #same as above
In Ext2 and ext3 mode, nodelalloc is the default, but in theory a user
could explicitly request delayed allocation using the delalloc mount
option. There's a bit of a philosophical question hiding here about
whether you want to prohibit users who might want to use ext2/ext3 but
still want to enable delalloc.
> discard #ex2 shouldn't be allowed to use it ?!
>
> nodiscard #same as above
Meh; if you use discard, and you crash in the middle of the unlink you
could lose data. But you use ext2 and you crash in the middle of
something, you're likely to lose data anyway. This just amplifies it
a bit more.
> block_validity #ext4 and debugging purposes only, should be off for ext2/3 too
>
> noblock_validity #same as above
I don't see any harm in allowing block_validity; it's a debugging
feature that can be useful in ext2 and ext3 modes.
>
> i_version # I believe this is only valid for Ext4
Well, you can have a file system with a larger (> 128 bytes) inode
with ext2 or ext3. So in theory you could make i_version work. I'm
not sure it matters a whole lot in either direction.
- Ted
next prev parent reply other threads:[~2013-12-10 0:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-09 21:25 Still about ext2/ext3 mount options while using ext4.ko driver Carlos Maiolino
2013-12-10 0:13 ` Theodore Ts'o [this message]
2014-01-06 18:28 ` Carlos Maiolino
2014-01-07 13:34 ` Jan Kara
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=20131210001353.GA19933@thunk.org \
--to=tytso@mit.edu \
--cc=linux-ext4@vger.kernel.org \
/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).