diff options
author | Connor O'Brien <connoro@google.com> | 2017-01-25 05:25:14 +0100 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-01-25 05:25:14 +0100 |
commit | b6684d327f6e1c1b8c05f2ca57283063cfc3f38b (patch) | |
tree | 99f0d895609c3f47404444b882a80460995ab9b2 | |
parent | Merge "minui: Move callback functions to std::function." am: a476312714 am: 343987b2a1 (diff) | |
parent | Merge "Use flash erase & logical block size for userdata wipe" am: c8f7b5bad7 (diff) | |
download | android_bootable_recovery-b6684d327f6e1c1b8c05f2ca57283063cfc3f38b.tar android_bootable_recovery-b6684d327f6e1c1b8c05f2ca57283063cfc3f38b.tar.gz android_bootable_recovery-b6684d327f6e1c1b8c05f2ca57283063cfc3f38b.tar.bz2 android_bootable_recovery-b6684d327f6e1c1b8c05f2ca57283063cfc3f38b.tar.lz android_bootable_recovery-b6684d327f6e1c1b8c05f2ca57283063cfc3f38b.tar.xz android_bootable_recovery-b6684d327f6e1c1b8c05f2ca57283063cfc3f38b.tar.zst android_bootable_recovery-b6684d327f6e1c1b8c05f2ca57283063cfc3f38b.zip |
Diffstat (limited to '')
-rw-r--r-- | roots.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -215,7 +215,12 @@ int format_volume(const char* volume, const char* directory) { } int result; if (strcmp(v->fs_type, "ext4") == 0) { - result = make_ext4fs_directory(v->blk_device, length, volume, sehandle, directory); + if (v->erase_blk_size != 0 && v->logical_blk_size != 0) { + result = make_ext4fs_directory_align(v->blk_device, length, volume, sehandle, + directory, v->erase_blk_size, v->logical_blk_size); + } else { + result = make_ext4fs_directory(v->blk_device, length, volume, sehandle, directory); + } } else { /* Has to be f2fs because we checked earlier. */ if (v->key_loc != NULL && strcmp(v->key_loc, "footer") == 0 && length < 0) { LOG(ERROR) << "format_volume: crypt footer + negative length (" << length |