summaryrefslogtreecommitdiffstats
path: root/roots.c
diff options
context:
space:
mode:
authorKen Sumrall <ksumrall@android.com>2011-01-15 03:55:05 +0100
committerKen Sumrall <ksumrall@android.com>2011-01-20 02:12:47 +0100
commit8f132ed870b4b83727d59f8019b8fabe49fe8ed4 (patch)
treea5f2aac0d8bbd1bca7288bce9dacc0cc47311c62 /roots.c
parentoption to allow recovery to use 24-bit graphics in UI (diff)
downloadandroid_bootable_recovery-8f132ed870b4b83727d59f8019b8fabe49fe8ed4.tar
android_bootable_recovery-8f132ed870b4b83727d59f8019b8fabe49fe8ed4.tar.gz
android_bootable_recovery-8f132ed870b4b83727d59f8019b8fabe49fe8ed4.tar.bz2
android_bootable_recovery-8f132ed870b4b83727d59f8019b8fabe49fe8ed4.tar.lz
android_bootable_recovery-8f132ed870b4b83727d59f8019b8fabe49fe8ed4.tar.xz
android_bootable_recovery-8f132ed870b4b83727d59f8019b8fabe49fe8ed4.tar.zst
android_bootable_recovery-8f132ed870b4b83727d59f8019b8fabe49fe8ed4.zip
Diffstat (limited to '')
-rw-r--r--roots.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/roots.c b/roots.c
index 92ce78950..5731d7407 100644
--- a/roots.c
+++ b/roots.c
@@ -238,8 +238,12 @@ int format_volume(const char* volume) {
}
if (strcmp(v->fs_type, "ext4") == 0) {
- reset_ext4fs_info();
- int result = make_ext4fs(v->device, NULL, NULL, 0, 0, 0, 0);
+ s64 len = 0;
+
+ if (strcmp(volume, "/data") == 0) {
+ len = -16384; /* Reserve 16 Kbytes for the crypto footer */
+ }
+ int result = make_ext4fs(v->device, len);
if (result != 0) {
LOGE("format_volume: make_extf4fs failed on %s\n", v->device);
return -1;