diff options
author | Koushik Dutta <koushd@gmail.com> | 2010-12-18 18:57:47 -0800 |
---|---|---|
committer | Koushik Dutta <koushd@gmail.com> | 2010-12-18 18:57:47 -0800 |
commit | bf4444f1fbc1aa82f39f06a1e866bfd8107dd624 (patch) | |
tree | 37e3c25a718532756b416135717c28285f1c988c /roots.c | |
parent | b643e4f3d0fde67fde2af1d44eca648d343ad367 (diff) | |
download | android_bootable_recovery-bf4444f1fbc1aa82f39f06a1e866bfd8107dd624.tar.gz android_bootable_recovery-bf4444f1fbc1aa82f39f06a1e866bfd8107dd624.tar.bz2 android_bootable_recovery-bf4444f1fbc1aa82f39f06a1e866bfd8107dd624.zip |
Fix various bugs.
Change-Id: I46e3001e6857480a77253be24b1753b2e4d88e69
Diffstat (limited to 'roots.c')
-rw-r--r-- | roots.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -196,6 +196,9 @@ int ensure_path_unmounted(const char* path) { int format_volume(const char* volume) { Volume* v = volume_for_path(volume); if (v == NULL) { + // silent failure for sd-ext + if (strcmp(volume, "/sd-ext") == 0) + return -1; LOGE("unknown volume \"%s\"\n", volume); return -1; } @@ -205,8 +208,11 @@ int format_volume(const char* volume) { return -1; } if (strcmp(v->mount_point, volume) != 0) { +#if 0 LOGE("can't give path \"%s\" to format_volume\n", volume); return -1; +#endif + return format_unknown_device(volume); } if (ensure_path_unmounted(volume) != 0) { |