aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Sandeen <sandeen@redhat.com>2009-11-19 14:28:50 -0500
committerTheodore Ts'o <tytso@mit.edu>2009-11-19 14:28:50 -0500
commite3bb52ae2bb9573e84c17b8e3560378d13a5c798 (patch)
tree529bbe0318f5bd6a2c76fb855c54b08bc85fd9e0
parent5328e635315734d42080de9a5a1ee87bf4cae0a4 (diff)
ext4: make "norecovery" an alias for "noload"
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>
-rw-r--r--Documentation/filesystems/ext4.txt4
-rw-r--r--fs/ext4/super.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/Documentation/filesystems/ext4.txt b/Documentation/filesystems/ext4.txt
index 26904ff6d61b..af6885c3c821 100644
--- a/Documentation/filesystems/ext4.txt
+++ b/Documentation/filesystems/ext4.txt
@@ -153,8 +153,8 @@ journal_dev=devnum When the external journal device's major/minor numbers
153 identified through its new major/minor numbers encoded 153 identified through its new major/minor numbers encoded
154 in devnum. 154 in devnum.
155 155
156noload Don't load the journal on mounting. Note that 156norecovery Don't load the journal on mounting. Note that
157 if the filesystem was not unmounted cleanly, 157noload if the filesystem was not unmounted cleanly,
158 skipping the journal replay will lead to the 158 skipping the journal replay will lead to the
159 filesystem containing inconsistencies that can 159 filesystem containing inconsistencies that can
160 lead to any number of problems. 160 lead to any number of problems.
diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index 2b382f6f80c1..5a2db612950b 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)
902 if (test_opt(sb, DISCARD)) 902 if (test_opt(sb, DISCARD))
903 seq_puts(seq, ",discard"); 903 seq_puts(seq, ",discard");
904 904
905 if (test_opt(sb, NOLOAD))
906 seq_puts(seq, ",norecovery");
907
905 ext4_show_quota_options(seq, sb); 908 ext4_show_quota_options(seq, sb);
906 909
907 return 0; 910 return 0;
@@ -1108,6 +1111,7 @@ static const match_table_t tokens = {
1108 {Opt_acl, "acl"}, 1111 {Opt_acl, "acl"},
1109 {Opt_noacl, "noacl"}, 1112 {Opt_noacl, "noacl"},
1110 {Opt_noload, "noload"}, 1113 {Opt_noload, "noload"},
1114 {Opt_noload, "norecovery"},
1111 {Opt_nobh, "nobh"}, 1115 {Opt_nobh, "nobh"},
1112 {Opt_bh, "bh"}, 1116 {Opt_bh, "bh"},
1113 {Opt_commit, "commit=%u"}, 1117 {Opt_commit, "commit=%u"},