Hi,

On 03/08, Philippe De Muyter wrote:
> Hi f2fs developpers,
> 
> Please excuse my maybe dumb question.
> 
> I recently encountered a kernel panic at root mount time (thus making my
> system unusable, as my root partition is formatted as f2fs) due to the
> following segment in fs/f2fs/segment.c:init_dirty_segmap
> 
>               if (valid_blocks > sbi->blocks_per_seg) {
>                         f2fs_bug_on(sbi, 1); <<<<<<<<<<<<<<<<<<<<
>                       continue;
>               }
> 
> Is that really a condition requiring a kernel panic, or could a read-only
> mount be allowed ?

It would be helpful that you can remain your kernel and f2fs-tools version
information, as well as fsck.f2fs result.

You can get the latest f2fs-tools from
http://git.kernel.org/cgit/linux/kernel/git/jaegeuk/f2fs-tools.git/log/?h=dev-test

Anyway, if you don't have time, you may have some options like:

1. disable F2FS_CHECK_FS in Kconfig
 : bypass BUG_ON here, so mount-ro would be preferable.

2. run fsck.f2fs
 : fix some inconsistency and let you mount your system again.

So, I think you'd better try #1 to retrieve your important data, and then
#2 to fix something wrong.

Thanks,

> 
> Philippe
> 
> -- 
> Philippe De Muyter +32 2 6101532 Macq SA rue de l'Aeronef 2 B-1140 Bruxelles
> 
> ------------------------------------------------------------------------------
> Announcing the Oxford Dictionaries API! The API offers world-renowned
> dictionary content that is easy and intuitive to access. Sign up for an
> account today to start using our lexical data to power your apps and
> projects. Get started today and enter our developer competition.
> http://sdm.link/oxford
> _______________________________________________
> Linux-f2fs-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

------------------------------------------------------------------------------
Announcing the Oxford Dictionaries API! The API offers world-renowned
dictionary content that is easy and intuitive to access. Sign up for an
account today to start using our lexical data to power your apps and
projects. Get started today and enter our developer competition.
http://sdm.link/oxford
_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

Reply via email to