android_system_core/fs_mgr
Keun-young Park 4d26b266e9 run e2fsck -f selectively with mount retry
- Do not use -f if it was cleanly shutdown.
- For unclean shutdown or other operation failures like
  mount, tune2fs failure, run full check.
- Still old image will run full check once in 5 reboots
  while new image will not run full check unless something
  fails.
- Add retry for final mount. If mount fails once, run full fsck
  once and try again.

bug: 32246772
bug: 35366616
Test: many reboots

(cherry picked from commit 40db04d640)

Change-Id: If312d91e09aca0648dd926e26a3d1e5f7ddedb46
2017-04-19 10:21:02 -07:00
..
include Set libavb version into system property for Treble OTA 2017-04-15 14:01:06 +08:00
.clang-format Fix-up coding style 2017-02-18 12:33:36 +08:00
Android.mk fs_mgr: make is_device_secure() work even in the absence of properties. 2017-02-27 12:46:18 -08:00
fs_mgr.cpp run e2fsck -f selectively with mount retry 2017-04-19 10:21:02 -07:00
fs_mgr_avb.cpp Set libavb version into system property for Treble OTA 2017-04-15 14:01:06 +08:00
fs_mgr_avb_ops.cpp fs_mgr_avb: refactors how vbmeta is loaded 2017-04-14 21:50:55 +08:00
fs_mgr_avb_ops.h fs_mgr_avb: refactors how vbmeta is loaded 2017-04-14 21:50:55 +08:00
fs_mgr_boot_config.cpp fs_mgr: change the log level in fs_mgr_get_boot_config() 2017-03-28 21:28:53 -07:00
fs_mgr_dm_ioctl.cpp Fix-up coding style 2017-02-18 12:33:36 +08:00
fs_mgr_format.cpp
fs_mgr_fstab.cpp fs_mgr: adds/changes some public APIs for early mount in init 2017-04-14 21:51:26 +08:00
fs_mgr_main.cpp
fs_mgr_priv.h fs_mgr: support AVB in fs_mgr_update_verity_state() 2017-04-14 21:53:49 +08:00
fs_mgr_priv_boot_config.h early_mount: fs_mgr: move all fstab logic into fs_mgr 2017-02-23 16:48:43 -08:00
fs_mgr_priv_dm_ioctl.h Fix-up coding style 2017-02-18 12:33:36 +08:00
fs_mgr_priv_sha.h fs_mgr_avb: refactors how vbmeta is loaded 2017-04-14 21:50:55 +08:00
fs_mgr_slotselect.cpp fs_mgr: adding fs_mgr_get_slot_suffix() public API 2017-04-14 21:49:33 +08:00
fs_mgr_verity.cpp fs_mgr: support AVB in fs_mgr_update_verity_state() 2017-04-14 21:53:49 +08:00