From 558aef791bff9a0e5662a94b50b53a6c7de4ef9e Mon Sep 17 00:00:00 2001 From: Greg Wallace Date: Tue, 19 Jan 2016 21:14:30 -0500 Subject: 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 --- partition.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/partition.cpp b/partition.cpp index 54bf5e179..8ddd4bed4 100644 --- a/partition.cpp +++ b/partition.cpp @@ -1862,7 +1862,7 @@ bool TWPartition::Wipe_F2FS() { 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]; -- cgit v1.2.3