]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ext4: mention noload when recovering on read-only device
authorSimon Ruderich <simon@ruderich.org>
Wed, 18 Oct 2017 17:06:37 +0000 (13:06 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 18 Oct 2017 17:06:37 +0000 (13:06 -0400)
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>
fs/ext4/super.c

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