lkml.org 
[lkml]   [2019]   [Sep]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 4.19 53/63] f2fs: fix to do sanity check on segment bitmap of LFS curseg
Hi!


> + for (blkofs += 1; blkofs < sbi->blocks_per_seg; blkofs++) {
> + if (!f2fs_test_bit(blkofs, se->cur_valid_map))
> + continue;
> +out:
> + f2fs_msg(sbi->sb, KERN_ERR,
> + "Current segment's next free block offset is "
> + "inconsistent with bitmap, logtype:%u, "
> + "segno:%u, type:%u, next_blkoff:%u, blkofs:%u",
> + i, curseg->segno, curseg->alloc_type,
> + curseg->next_blkoff, blkofs);
> + return -EINVAL;
> + }

So this is detecting filesystem corruption, right? Should it be
-EUCLEAN?

Pavel

--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

\
 
 \ /
  Last update: 2019-09-30 09:22    [W:0.237 / U:0.540 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site