f2fs: give a warning only for readonly partition
Let's allow mounting readonly partition. We're able to recovery later once we have it as read-write back. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
parent
d50dfc0c7d
commit
938a184265
1 changed files with 3 additions and 5 deletions
|
@ -3933,12 +3933,10 @@ try_onemore:
|
||||||
* previous checkpoint was not done by clean system shutdown.
|
* previous checkpoint was not done by clean system shutdown.
|
||||||
*/
|
*/
|
||||||
if (f2fs_hw_is_readonly(sbi)) {
|
if (f2fs_hw_is_readonly(sbi)) {
|
||||||
if (!is_set_ckpt_flags(sbi, CP_UMOUNT_FLAG)) {
|
if (!is_set_ckpt_flags(sbi, CP_UMOUNT_FLAG))
|
||||||
err = -EROFS;
|
|
||||||
f2fs_err(sbi, "Need to recover fsync data, but write access unavailable");
|
f2fs_err(sbi, "Need to recover fsync data, but write access unavailable");
|
||||||
goto free_meta;
|
else
|
||||||
}
|
f2fs_info(sbi, "write access unavailable, skipping recovery");
|
||||||
f2fs_info(sbi, "write access unavailable, skipping recovery");
|
|
||||||
goto reset_checkpoint;
|
goto reset_checkpoint;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue