commit | 558aef791bff9a0e5662a94b50b53a6c7de4ef9e | [log] [tgz] |
---|---|---|
author | Greg Wallace <greg@gregtwallace.com> | Tue Jan 19 21:14:30 2016 -0500 |
committer | Dees Troy <dees_troy@teamw.in> | Fri Jan 29 17:55:46 2016 +0100 |
tree | 4753104d188ee1f197f84242b140d539bf62289a | |
parent | 4fea38a1d4b0541d97d6e2d530a5cf64534d9b17 [diff] [blame] |
Reduce format f2fs time Secure block discard/trim was fixed by: https://github.com/CyanogenMod/android_external_f2fs-tools/commit/6b39b93d83ab4ccb1913ecbc7a5a3e16766a011f Once fixed, formatting using discard/trim takes a LONG time. Other TWRP formatting methods are already insecure. It doesn't make sense for this one type of partition to have secure wipe when none of the others do. Change-Id: Ib5ad5a722895b0e0c7aa4e3af98b705e2574b762
diff --git a/partition.cpp b/partition.cpp index 54bf5e1..8ddd4be 100644 --- a/partition.cpp +++ b/partition.cpp
@@ -1862,7 +1862,7 @@ gui_msg(Msg("formatting_using=Formatting {1} using {2}...")(Display_Name)("mkfs.f2fs")); Find_Actual_Block_Device(); - command = "mkfs.f2fs -t 1"; + command = "mkfs.f2fs -t 0"; if (!Is_Decrypted && Length != 0) { // Only use length if we're not decrypted char len[32];