summaryrefslogtreecommitdiffstats
path: root/roots.c
diff options
context:
space:
mode:
authorDoug Zongker <dougz@android.com>2010-08-13 00:35:29 +0200
committerDoug Zongker <dougz@android.com>2010-08-13 00:35:29 +0200
commit04611da55b13f9697173d3aa947b3a735b96c01f (patch)
treea5340df3e931f5fc9bb7d53d092d8327de045ca0 /roots.c
parentWorking ASLR implementation (diff)
downloadandroid_bootable_recovery-04611da55b13f9697173d3aa947b3a735b96c01f.tar
android_bootable_recovery-04611da55b13f9697173d3aa947b3a735b96c01f.tar.gz
android_bootable_recovery-04611da55b13f9697173d3aa947b3a735b96c01f.tar.bz2
android_bootable_recovery-04611da55b13f9697173d3aa947b3a735b96c01f.tar.lz
android_bootable_recovery-04611da55b13f9697173d3aa947b3a735b96c01f.tar.xz
android_bootable_recovery-04611da55b13f9697173d3aa947b3a735b96c01f.tar.zst
android_bootable_recovery-04611da55b13f9697173d3aa947b3a735b96c01f.zip
Diffstat (limited to '')
-rw-r--r--roots.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/roots.c b/roots.c
index 10b93d48a..31f99ac13 100644
--- a/roots.c
+++ b/roots.c
@@ -51,7 +51,6 @@ static const char g_ramdisk[] = "@\0g_ramdisk";
static RootInfo g_roots[] = {
{ "BOOT:", g_mtd_device, NULL, "boot", NULL, g_raw },
- { "MISC:", g_mtd_device, NULL, "misc", NULL, g_raw },
{ "PACKAGE:", NULL, NULL, NULL, NULL, g_package_file },
{ "RECOVERY:", g_mtd_device, NULL, "recovery", "/", g_raw },
{ "SYSTEM:", g_mtd_device, NULL, "system", "/system", "yaffs2" },
@@ -68,6 +67,7 @@ static RootInfo g_roots[] = {
{ "CACHE:", g_mtd_device, NULL, "cache", "/cache", "yaffs2" },
{ "DATA:", g_mtd_device, NULL, "userdata", "/data", "yaffs2" },
{ "EXT:", "/dev/block/mmcblk0p1", "/dev/block/mmcblk0", NULL, "/sdcard", "vfat" },
+ { "MISC:", g_mtd_device, NULL, "misc", NULL, g_raw },
#endif
};
@@ -384,8 +384,10 @@ format_root_device(const char *root)
#ifdef USE_EXT4
if (strcmp(info->filesystem, "ext4") == 0) {
+ LOGW("starting to reformat ext4\n");
reset_ext4fs_info();
int result = make_ext4fs(info->device, NULL, NULL, 0, 0);
+ LOGW("finished reformat ext4: result = %d\n", result);
if (result != 0) {
LOGW("make_ext4fs failed: %d\n", result);
return -1;