platform_system_core/logwrapper
Yusuke Sato 0df08271fb Use fsck.f2fs -a instead of -f for faster boot
and run fsck with -f on clean shutdown instead.

With -f, fsck.f2fs always performs a full scan of the /data
partition regardless of whether the partition is clean or not.
The full scan takes more than 2 seconds on volantis-userdebug
and delays the OS boot.

With -a, the command does almost nothing when the partition
is clean and finishes within 20-30ms on volantis-userdebug.
When the partition has an error or its check point has
CP_FSCK_FLAG (aka "need_fsck"), the command does exactly the
same full scan as -f to fix it.

Bug: 21853106
Change-Id: I126263caf34c0f5bb8f5e6794454d4e72526ce38
2015-07-15 10:13:51 -07:00
..
include/logwrap Create a separate copy of the fsck logs 2013-09-20 17:44:33 -07:00
Android.mk logwrapper: turn on -Werror 2014-05-02 14:15:59 -07:00
logwrap.c Use fsck.f2fs -a instead of -f for faster boot 2015-07-15 10:13:51 -07:00
logwrapper.c system/core 64-bit cleanup. 2014-01-16 12:54:18 -08:00
NOTICE Automated import from //branches/master/...@140824,140824 2009-03-24 18:36:50 -07:00