vold: set klog level so e2fsck output is logged
When mounting an encrypted filesystem vold calls fs_mgr, which will call e2fsck on the fielsystem if it's configured to, and fs_mgr will attempt to log the output the kernel log. However, if won't log anything unless the klog level is set to 6, aka INFO. Change-Id: I8ac34941330262ea3414681b872fbbeb75391461
This commit is contained in:
parent
286374f166
commit
b9738ea969
1 changed files with 4 additions and 0 deletions
4
main.cpp
4
main.cpp
|
@ -27,6 +27,7 @@
|
|||
|
||||
#define LOG_TAG "Vold"
|
||||
|
||||
#include "cutils/klog.h"
|
||||
#include "cutils/log.h"
|
||||
#include "cutils/properties.h"
|
||||
|
||||
|
@ -52,6 +53,9 @@ int main() {
|
|||
|
||||
mkdir("/dev/block/vold", 0755);
|
||||
|
||||
/* For when cryptfs checks and mounts an encrypted filesystem */
|
||||
klog_set_level(6);
|
||||
|
||||
/* Create our singleton managers */
|
||||
if (!(vm = VolumeManager::Instance())) {
|
||||
SLOGE("Unable to create VolumeManager");
|
||||
|
|
Loading…
Reference in a new issue