]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
ext4: make "norecovery" an alias for "noload"
authorEric Sandeen <sandeen@redhat.com>
Thu, 19 Nov 2009 19:28:50 +0000 (14:28 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 19 Nov 2009 19:28:50 +0000 (14:28 -0500)
Users on the linux-ext4 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>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Documentation/filesystems/ext4.txt
fs/ext4/super.c

index 26904ff6d61b60951e8d00f6a009b331d866f730..af6885c3c821f621f5827a46cb0728c61a9e768c 100644 (file)
@@ -153,8 +153,8 @@ journal_dev=devnum  When the external journal device's major/minor numbers
                        identified through its new major/minor numbers encoded
                        in devnum.
 
-noload                 Don't load the journal on mounting.  Note that
-                       if the filesystem was not unmounted cleanly,
+norecovery             Don't load the journal on mounting.  Note that
+noload                 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.
index 2b382f6f80c1c888536119076dc65a41ed7fcd08..5a2db612950b0c440b56edc529c68a116768bf9a 100644 (file)
@@ -902,6 +902,9 @@ static int ext4_show_options(struct seq_file *seq, struct vfsmount *vfs)
        if (test_opt(sb, DISCARD))
                seq_puts(seq, ",discard");
 
+       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"},