Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 558aef79 authored by Greg Wallace's avatar Greg Wallace Committed by Dees Troy
Browse files

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
parent 4fea38a1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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];