diff options
| author | Keun-young Park <keunyoung@google.com> | 2017-04-11 18:59:56 -0700 |
|---|---|---|
| committer | Keun-young Park <keunyoung@google.com> | 2017-04-13 17:11:11 -0700 |
| commit | 6000a3f65720757279707193d940c0942abfe9c7 (patch) | |
| tree | 47236abe90593f14ff2d8d0e6ba93a796b485938 /trusty/coverage/coverage.cpp | |
| parent | 659b78ed10fb9116e5dbbf6971fc2e36ca88a465 (diff) | |
check ext4 magic before running next steps
- mount, e2fsck, tune2fs will all fail if magic number does not match.
- mismatch always happen for FDE and is wasting boot-up time to try
all and fail always.
- skip mount steps if it has invalid magic number and do not record
fs_stat either.
- For ext4 fs with corrupt superblock, e2fsck refuses to do anything if
superblock magic is invalid. So simply running e2fsck does not help
anyway.
bug: 36231950
Test: reboot ane check fs_mgr log from dmesg
Change-Id: I9ad9e0cd30fd074b3bbf8f450bd401b133d5771a
Diffstat (limited to 'trusty/coverage/coverage.cpp')
0 files changed, 0 insertions, 0 deletions
