summaryrefslogtreecommitdiffstats
path: root/roots.cpp
diff options
context:
space:
mode:
authorDees_Troy <dees_troy@teamw.in>2012-09-14 19:33:53 +0200
committerDees_Troy <dees_troy@teamw.in>2012-09-14 19:36:32 +0200
commit38bd760b589d405db9a2e6bf304f07d1b0bae342 (patch)
tree8f7dd4ccdcf52ea8b85007bdbeb7d682c1119815 /roots.cpp
parentMake text appear in GUI console, Zip install works. (diff)
downloadandroid_bootable_recovery-38bd760b589d405db9a2e6bf304f07d1b0bae342.tar
android_bootable_recovery-38bd760b589d405db9a2e6bf304f07d1b0bae342.tar.gz
android_bootable_recovery-38bd760b589d405db9a2e6bf304f07d1b0bae342.tar.bz2
android_bootable_recovery-38bd760b589d405db9a2e6bf304f07d1b0bae342.tar.lz
android_bootable_recovery-38bd760b589d405db9a2e6bf304f07d1b0bae342.tar.xz
android_bootable_recovery-38bd760b589d405db9a2e6bf304f07d1b0bae342.tar.zst
android_bootable_recovery-38bd760b589d405db9a2e6bf304f07d1b0bae342.zip
Diffstat (limited to '')
-rw-r--r--roots.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/roots.cpp b/roots.cpp
index e74747378..69c98fc1d 100644
--- a/roots.cpp
+++ b/roots.cpp
@@ -274,7 +274,11 @@ int format_volume(const char* volume) {
}
if (strcmp(v->fs_type, "ext4") == 0) {
+#ifdef USE_EXT4
int result = make_ext4fs(v->device, v->length, volume, sehandle);
+#else
+ int result = 0;
+#endif
if (result != 0) {
LOGE("format_volume: make_extf4fs failed on %s\n", v->device);
return -1;