fsck.f2fs: do not assert if i_size is missing i_blocks in symlink
PATCH 1/1 fsck.f2fs: do not assert if i_size is missing i_blocks in symlink
This case is not a bug, so we should fix seamlessly.
Signed-off-by Jaegeuk Kim <[email protected]>
--- fsck/fsck.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-)
fsck/fsck.c +3 -7
@@ -1131,14 +1131,10 @@ skip_blkcnt_fix:if (ftype ==F2FS_FT_SYMLINK && i_size ==0 && i_blocks == (i_xattr_nid ?3 :2 )) { -ASSERT_MSG ("ino: 0x%x i_blocks: %lu with zero i_size\n" , - nid, (unsigned long )i_blocks); -if (c.fix_on) { - node_blk->i.i_size =cpu_to_le64 (F2FS_BLKSIZE ); - need_fix =1 ; -FIX_MSG ("Symlink: recover 0x%x with i_size=%lu" , + node_blk->i.i_size =cpu_to_le64 (F2FS_BLKSIZE ); + need_fix =1 ; +FIX_MSG ("Symlink: recover 0x%x with i_size=%lu" , nid, (unsigned long )F2FS_BLKSIZE ); - } }if (ftype ==F2FS_FT_ORPHAN && i_links) {
Signature · 8 lines
2.34.0.rc1.387.gb447b232ab-goog _______________________________________________ Linux-f2fs-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel