summaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorKen Sumrall <ksumrall@android.com>2013-03-19 19:38:44 -0700
committerKen Sumrall <ksumrall@android.com>2013-04-14 17:11:00 -0700
commitbf021b4cd760a48b38c58347a35157180593c4b8 (patch)
tree68d68ec09e5679e07c925a44d1a2fd2939a7de57 /init
parent96e11b5bc473918d61b088f1840e4d1ec48fd3ab (diff)
downloadsystem_core-bf021b4cd760a48b38c58347a35157180593c4b8.zip
system_core-bf021b4cd760a48b38c58347a35157180593c4b8.tar.gz
system_core-bf021b4cd760a48b38c58347a35157180593c4b8.tar.bz2
fs_mgr: Capture the output of e2fsck and add to the kernel log
Currently, the output of e2fsck is not saved, and we have no insight into how many errors e2fsck is finding and fixing. Using the new abbreviated logging feature in liblogwrap, up to the first 100 lines, and last 4K bytes of the output of e2fsck is captured by fs_mgr, and added to the kernel log. Usually, the filesystem will be clean, and this will only add a few lines to the kernel log on boot, but when things go wrong, it should save enough to indicate what the problem is, without potentially filling the kernel log with only e2fsck output if the filesystem is really corrupted. Change-Id: I9c264798e6fe721c8f818b5ce15d0975027ddbdd
Diffstat (limited to 'init')
-rw-r--r--init/Android.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/init/Android.mk b/init/Android.mk
index 00d2144..ef62bce 100644
--- a/init/Android.mk
+++ b/init/Android.mk
@@ -35,7 +35,9 @@ LOCAL_UNSTRIPPED_PATH := $(TARGET_ROOT_OUT_UNSTRIPPED)
LOCAL_STATIC_LIBRARIES := \
libfs_mgr \
+ liblogwrap \
libcutils \
+ liblog \
libc \
libselinux