* [PATCH 2/2] ext4: make "norecovery" an alias for "noload"
@ 2009-11-16 22:47 Eric Sandeen
2009-11-19 19:32 ` tytso
0 siblings, 1 reply; 2+ messages in thread
From: Eric Sandeen @ 2009-11-16 22:47 UTC (permalink / raw)
To: ext4 development
Users on the list recently complained about differences across
filesystems w.r.t. how to mount without a journal replay.
In the discussion it was noted that xfs's "norecovery" option is
perhaps more descriptively accurate than "noload," so let's make
that an alias for ext4.
Also show this status in /proc/mounts
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
---
diff --git a/Documentation/filesystems/ext4.txt b/Documentation/filesystems/ext4.txt
index 87036af..e5d47a7 100644
--- a/Documentation/filesystems/ext4.txt
+++ b/Documentation/filesystems/ext4.txt
@@ -154,7 +154,7 @@ journal_dev=devnum When the external journal device's major/minor numbers
in devnum.
noload Don't load the journal on mounting. Note that
- if the filesystem was not unmounted cleanly,
+norecovery if the filesystem was not unmounted cleanly,
skipping the journal replay will lead to the
filesystem containing inconsistencies that can
lead to any number of problems.
diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index fc4a8d8..ea3148b 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -902,6 +902,9 @@ static int ext4_show_options(struct seq_file *seq, struct vfsmount *vfs)
if (test_opt(sb, TRIM))
seq_puts(seq, ",trim");
+ if (test_opt(sb, NOLOAD))
+ seq_puts(seq, ",norecovery");
+
ext4_show_quota_options(seq, sb);
return 0;
@@ -1108,6 +1111,7 @@ static const match_table_t tokens = {
{Opt_acl, "acl"},
{Opt_noacl, "noacl"},
{Opt_noload, "noload"},
+ {Opt_noload, "norecovery"},
{Opt_nobh, "nobh"},
{Opt_bh, "bh"},
{Opt_commit, "commit=%u"},
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH 2/2] ext4: make "norecovery" an alias for "noload"
2009-11-16 22:47 [PATCH 2/2] ext4: make "norecovery" an alias for "noload" Eric Sandeen
@ 2009-11-19 19:32 ` tytso
0 siblings, 0 replies; 2+ messages in thread
From: tytso @ 2009-11-19 19:32 UTC (permalink / raw)
To: Eric Sandeen; +Cc: ext4 development
On Mon, Nov 16, 2009 at 04:47:09PM -0600, Eric Sandeen wrote:
> Users on the list recently complained about differences across
> filesystems w.r.t. how to mount without a journal replay.
>
> In the discussion it was noted that xfs's "norecovery" option is
> perhaps more descriptively accurate than "noload," so let's make
> that an alias for ext4.
>
> Also show this status in /proc/mounts
>
> Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Queued, thanks.
I made a minor change to Documentation/filesystems/ext4.txt to make
"norecovery" be the first option, since we seem to be treating it as
the canonical option name in ext4_show_options().
- Ted
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-11-19 20:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-16 22:47 [PATCH 2/2] ext4: make "norecovery" an alias for "noload" Eric Sandeen
2009-11-19 19:32 ` tytso
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.