Apply a preen mode 2 about f2fs.fsck.
When f2fs file is created in lower kernel than v4.19, i_gc_failure is
initialized to 0x1. In Tizen Build System, user image is always set to
1 because of using old kernel.
[FIX] (fsck_chk_inode_blk:1071) --> Regular: 0x31 reset i_gc_failures from 0x1 to 0x00
Preen mode 2 is for skipping this behavior about old kernel.
https://lore.kernel.org/patchwork/patch/
1017743/
The first booting time will be reduced.
Change-Id: I23825d9ff1f49c6b3cf9db9513f53f3854fcdee0
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
then
if [ "$NEED_RESIZEFS" = "1" ]
then
- /sbin/fsck.f2fs -y $USERFS
+ /sbin/fsck.f2fs -p 2 -y $USERFS
/sbin/resize.f2fs $USERFS
fi
- /sbin/fsck.f2fs -y $USERFS
+ /sbin/fsck.f2fs -p 2 -y $USERFS
else
if [ "$NEED_RESIZEFS" = "1" ]
then