aboutsummaryrefslogtreecommitdiffstats
path: root/roots.c
diff options
context:
space:
mode:
authorKoushik Dutta <koushd@gmail.com>2010-04-18 16:00:21 -0700
committerKoushik Dutta <koushd@gmail.com>2010-04-18 16:00:21 -0700
commit2f73e58ef8cf5f8d0f735ce7c42326c09041417f (patch)
treebc129f3f9c3a9b02aee321cd1fd7277b9c515ccd /roots.c
parent7fe4d7bbcbe1950839c963d4ba07f71a6db362b6 (diff)
downloadandroid_bootable_recovery-2f73e58ef8cf5f8d0f735ce7c42326c09041417f.tar.gz
android_bootable_recovery-2f73e58ef8cf5f8d0f735ce7c42326c09041417f.tar.bz2
android_bootable_recovery-2f73e58ef8cf5f8d0f735ce7c42326c09041417f.zip
Unmount partitions after restore (except for CACHE:).
Wipe sd-ext on data wipe. Fix bug where wiping SDEXT: did not work.
Diffstat (limited to 'roots.c')
-rw-r--r--roots.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/roots.c b/roots.c
index 31c7bdd7..abfb4ce7 100644
--- a/roots.c
+++ b/roots.c
@@ -27,6 +27,8 @@
#include "roots.h"
#include "common.h"
+#include "extendedcommands.h"
+
typedef struct {
const char *name;
const char *device;
@@ -366,7 +368,6 @@ format_root_device(const char *root)
}
}
}
-//TODO: handle other device types (sdcard, etc.)
- LOGW("format_root_device: can't handle non-mtd device \"%s\"\n", root);
- return -1;
+
+ return format_non_mtd_device(root);
}