浏览代码

ext4: mention noload when recovering on read-only device

Help the user to find the appropriate mount option to continue mounting
the file system on a read-only device if the journal requires recovery.

Signed-off-by: Simon Ruderich <simon@ruderich.org>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Simon Ruderich 7 年之前
父节点
当前提交
d98bf8cd11
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      fs/ext4/super.c

+ 2 - 1
fs/ext4/super.c

@@ -4616,7 +4616,8 @@ static int ext4_load_journal(struct super_block *sb,
 					"required on readonly filesystem");
 					"required on readonly filesystem");
 			if (really_read_only) {
 			if (really_read_only) {
 				ext4_msg(sb, KERN_ERR, "write access "
 				ext4_msg(sb, KERN_ERR, "write access "
-					"unavailable, cannot proceed");
+					"unavailable, cannot proceed "
+					"(try mounting with noload)");
 				return -EROFS;
 				return -EROFS;
 			}
 			}
 			ext4_msg(sb, KERN_INFO, "write access will "
 			ext4_msg(sb, KERN_INFO, "write access will "