From f1b8d94c708958ec3dc67ca37fd1db85f895e338 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Wed, 18 Oct 2017 13:08:28 -0400 Subject: [PATCH] add patch mention-noload-when-recovering-on-ro-device --- mention-noload-when-recovering-on-ro-device | 46 +++++++++++++++++++++++++++++ series | 1 + timestamps | 7 +++-- 3 files changed, 51 insertions(+), 3 deletions(-) create mode 100644 mention-noload-when-recovering-on-ro-device diff --git a/mention-noload-when-recovering-on-ro-device b/mention-noload-when-recovering-on-ro-device new file mode 100644 index 00000000..21427565 --- /dev/null +++ b/mention-noload-when-recovering-on-ro-device @@ -0,0 +1,46 @@ +ext4: mention noload when recovering on read-only device + +From: Simon Ruderich + +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 +Signed-off-by: Theodore Ts'o +--- +Hello, + +I tried to mount an ext4 which required recovery from a read-only +device and stumbled over this error. I freaked out for a second +(trying to restore from a backup) and it took me a (short) while +to figure out what to do and I thought it would be useful to give +the user a hand by pointing to the required mount option. + +Regards +Simon + + fs/ext4/super.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/fs/ext4/super.c b/fs/ext4/super.c +index d61a70e2193a..f497b79da5cc 100644 +--- a/fs/ext4/super.c ++++ b/fs/ext4/super.c +@@ -4589,7 +4589,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 " +-- +2.14.1 + +-- ++ privacy is necessary ++ using gnupg http://gnupg.org ++ public key id: 0x92FEFDB7E44C32F9 + diff --git a/series b/series index e28e11ac..d03b395d 100644 --- a/series +++ b/series @@ -16,6 +16,7 @@ remove-duplicate-extended-attributes-defs jbd2-convert-timers-to-use-timer_setup ext4-convert-timers-to-use-timer-setup fix-little-inconsistencies +mention-noload-when-recovering-on-ro-device #################################################### # unstable patches diff --git a/timestamps b/timestamps index f72ca4cc..51d27c39 100755 --- a/timestamps +++ b/timestamps @@ -47,6 +47,7 @@ touch -d @1507824588 remove-duplicate-extended-attributes-defs touch -d @1508344828 jbd2-convert-timers-to-use-timer_setup touch -d @1508345117 ext4-convert-timers-to-use-timer-setup touch -d @1508345435 fix-little-inconsistencies -touch -d @1508345463 series -touch -d @1508345467 status -touch -d @1508345523 timestamps +touch -d @1508346397 mention-noload-when-recovering-on-ro-device +touch -d @1508346487 series +touch -d @1508346495 status +touch -d @1508346499 timestamps -- 2.11.4.GIT