yashsingh1/xdaforums huggingface dataset:
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] giaur:
:rolleyes:

Well, it's not working. Restoring "system image" result is nothing but blank screen with nothing restored.
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] superedit86:
ok, it's a twrp issue.

but as long as you don't need to restore EFS and you can reflash your favorite rom you can live with it

of course it would be good to fix it but at the moment you have the workaround
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] lalit.abl:
Any progress in multirom or Dual Boot Patcher for oreo support?
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] ThE_MarD:
Heyyo, almost ready to merge the March 30, 2018 test build of TWRP to official! Just need them to create an android-8.1 branch on android_device_leeco_x2 on teamwin GitHub for us! Woot! major credits go to codeworkx for his zl1 android-8.1 branch which has fixes adb sideload and data decryption that works flawlessly on the x2.

Sorry, it took me a while getting around to it. :P

https://github.com/chenxiaolong/DualBootPatcher/pull/1081

Just need to wait and see if they'll merge it.
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] lalit.abl:
[MENTION=6235294]ThE_MarD[/MENTION], Dear sir, is your this work related to Oreo compatibility for Dual Boot Patcher?
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] ThE_MarD:
Unfortunately I can only guarantee Dual Boot Patcher will work with x2. It was a pretty simple fix once I looked at it heh, it thought x2 was still 32bit TWRP. :eek:

Once that gets merged and works hopefully it will work for Oreo but we shall see
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] lalit.abl:
Dear sir,

Please make changes for Multi ROM also as it is more user friendly than Dual Boot Patcher.
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] ThE_MarD:
Heyyo, it is pushed to TWRP Gerrit to upgrade X2 to Oreo kernel with working data decryption and adb sideload thanks to rebasing on zl1 android-8.1 TWRP device tree by codeworkx :highfive:

https://gerrit.twrp.me/#/c/3041/

Unfortunately for MultiROM that is a lot more technical than my current software development knowledge and with the passing of nkk71 the future of MultiROM is unknown....
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] lalit.abl:
[MENTION=6235294]ThE_MarD[/MENTION], Dear sir, Dual Boot Patcher developers have merge your work. I have tried Latest version on 05-04-2018 but it failed to implement Oreo as Secondary Rom. Please make further efforts.
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] ThE_MarD:
Heyyo, tbh it's probably got the same issues as MultiROM... For Oreo support? That will require a fix for Dual Boot Patcher. I can only guarantee the Le Max 2 is compatible to DBP.

Much like Nougat ROMs require a sdcardfs fix in the kernel to work properly with MultiROM.

I've seen in their issue tracker that it is a known issue so hopefully they can find a proper solution.
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] ThE_MarD:
Heyyo, test version uploaded. f2fs-twrp-3.2.1-x2-unofficial-april11-2018. Has f2fs support. Link is in the first post under test builds. :)

Submission to gerrit for review:

https://gerrit.twrp.me/#/c/3066/
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] GalaticStryder:
I've tested yours and my recovery and both seem to have F2FS /data conversion not working.

If someone can confirm it would be great, I'm not sure what broke it for you but my tree uses LineageOS 15.1 to build the recovery inline and with our updated f2fs-tools I have the same issues, Omni seems to track it from AOSP, though. I don't think that should make a difference as the issue is present on yours too, unless AOSP updated it with some change that broke it.

https://github.com/omnirom/android_bootable_recovery/issues/210

Probably they'll come up with a fix? If someone can test converting /data to F2FS and testing would be good.
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] ThE_MarD:
Heyyo, the issue is indeed the reserved length at the end of the data in twrp.fstab and TWRP trying to use -r when mkfs.f2fs does not support -r

I:Set page: 'wipe'
I:Set page: 'advancedwipe'
I:checkpartitionlist list '/data;'
I:checkpartitionlist part_path '/data'
I:Set page: 'checkpartitionlist'
I:getpartitiondetails list '/data;'
I:getpartitiondetails part_path '/data'
I:Set page: 'partitionoptions'
I:Set page: 'selectfilesystem'
I:Set page: 'confirm_action'
I:Set page: 'action_page'
I:operation_start: 'Change File System'
I:sending message to remove 65537
I:[MTP] mtppipe remove storage 65537
I:Message sent, remove storage ID: 65537
Formatting Data using mkfs.f2fs...
mkfs.f2fs: invalid option -- r
Error: Unknown option ?

Usage: mkfs.f2fs [options] device [sectors]
[options]:
-a heap-based allocation [default:0]
-c [device path] up to 7 devices excepts meta device
-d debug level [default:0]
-e [extension list] e.g. "mp3,gif,mov"
-f force overwrite the exist filesystem
-l label
-m support zoned block device [default:0]
-o overprovision ratio [default:5]
-O [feature list] e.g. "encrypt"
-q quiet mode
-s # of segments per section [default:1]
-S sparse mode
-t 0: nodiscard, 1: discard [default:1]
-z # of sections per zone [default:1]
sectors: number of sectors. [default: determined by device size]
mkfs.f2fs -t 0 -r 16384 /dev/block/sda9 process ended with ERROR: 1
Unable to wipe Data.
Error changing file system.

But if I remove "length=-16384;" from twrp.fstab? I can format it to and from f2fs without issue... but now data encryption might not work... going to test that.
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] ThE_MarD:
Heyyo, unfortunately for me -w option seems to also be missing. I did double check my .git folder's config files and they do show...

https://github.com/omnirom/android_bootable_recovery

and

https://github.com/omnirom/android_system_core

So I'm not sure why I'm missing -w in my builds but yours have it.

Formatting Data using mkfs.f2fs...
I:mkfs.f2fs command: mkfs.f2fs -t 0 -w 16384 /dev/block/sda9
mkfs.f2fs: invalid option -- w
Error: Unknown option ?

Usage: mkfs.f2fs [options] device [sectors]
[options]:
-a heap-based allocation [default:0]
-c [device path] up to 7 devices excepts meta device
-d debug level [default:0]
-e [extension list] e.g. "mp3,gif,mov"
-f force overwrite the exist filesystem
-l label
-m support zoned block device [default:0]
-o overprovision ratio [default:5]
-O [feature list] e.g. "encrypt"
-q quiet mode
-s # of segments per section [default:1]
-S sparse mode
-t 0: nodiscard, 1: discard [default:1]
-z # of sections per zone [default:1]
sectors: number of sectors. [default: determined by device size]
mkfs.f2fs -t 0 -w 16384 /dev/block/sda9 process ended with ERROR: 1
Unable to wipe Data.
Error changing file system.
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] GalaticStryder:
This -w option is for wanted sector blocks, my bad, it's a new (that's why you don't have it on AOSP 8.1 f2fs-tools) addition made by Xiaomi to specify a different sector size instead of the calculated one - which defaults to 4094 - so it's not used for block reservation at all.

So instead to actually reserve the blocks for footer we need to do what resize does, get the total amount of blocks minus the footer length, that's how I'm doing it right now:

Formatting Data using mkfs.f2fs...
I:mkfs.f2fs command: mkfs.f2fs -t 0 /dev/block/sda9 25536188

F2FS-tools: mkfs.f2fs Ver: 1.10.0 (2018-01-30)

Info: Disable heap-based policy
Info: Debug level = 0
Info: Label =
Info: Trim is disabled
Info: wanted sectors = 25536188 (in 18446744073709551615 bytes)
Info: Segments per section = 1
Info: Sections per zone = 1
Info: sector size = 4096
Info: total sectors = 6384051 (24937 MB)
Info: zone aligned segment0 blkaddr: 512
Info: format version with
"Linux version 3.18.104-recovery-g8d60ecb1d7c8 (galatic@stryder) (gcc version 4.9.x 20150123 (prerelease) (GCC) ) #1 SMP PREEMPT Sat Apr 14 16:09:40 -03 2018"
Info: Overprovision ratio = 1.270%
Info: Overprovision segments = 320 (GC reserved = 165)
Info: format successful
I:mkfs.f2fs -t 0 /dev/block/sda9 25536188 process ended with RC=0

Attached the correct patch for you.
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] GalaticStryder:
My TWRP for testing

Here's a recovery build with fixed footer lenght for F2FS: Github releases.

This is capable of encrypting your phone with F2FS /data partition, if you see the source code, it's a little hacky but actually is what Kim is using on Android vold lately.

It doesn't decrypt just yet but that might be because I'm compiling it with upstream merged code on latest LineageOS 15.1 code base.

I want to get this sorted prior to releasing my next builds, please report back.

[MENTION=3208754]codeworkx[/MENTION] if you can test/review that little patch on my source and test on ZL1 too.
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] ThE_MarD:
Your test build works for me as I am able to convert to f2fs from ext4 good job on this! :)
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] GalaticStryder:
The only issue so far is decryption, neither EXT4 nor F2FS seem to work with my current setup, seems like TWRP doesn't get keymaster to convert the plain text to HEX to decrypt the master key. If you can test decryption with my recovery vs. yours (if you don't need /data access right now), please do it to get us a working vs. broken log. After you encrypt you can exchange the recovery with yours with fastboot.
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] ThE_MarD:
Sure I can give that a shot. I'm not too worried about nuking my data partition to try and fix things

Just a question as I'm not too familiar with reserved length... What about reducing it from the actual size in BoardConfig.mk? I noticed some people use it but I'm unsure if it would work for us

Like this:

https://github.com/sonyxperiadev/device-sony-suzu/blob/master/BoardConfig.mk
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] GalaticStryder:
That isn't a really good approach, the way I hacked it is the same way used in vold. I'm not sure if generating a smaller image with the BOARD flags could do it for variants with different storage sizes, blocks would be different this way.

I've compiled the usual TWRP recovery from omnirom sources now and it does indeed decrypt both F2FS/EXT4 just fine. Now I have a comparison between the one from LineageOS and Omni to see how to update decryption handling to work with LOS tree, then I'll try to push it for review for thoughts on the implementation.

I:operation_start: 'Decrypt'
crypt_ftr->fs_size = 51072376
Using scrypt with keymaster for cryptfs KDF
keymaster module name is Keymaster QTI HAL
keymaster version is 256
Found keymaster1 module, using keymaster1 API.
Signing safely-padded object
Using scrypt with keymaster for cryptfs KDF
keymaster module name is Keymaster QTI HAL
keymaster version is 256
Found keymaster1 module, using keymaster1 API.
Signing safely-padded object
crypt_ftr->fs_size = 51072376
Using scrypt with keymaster for cryptfs KDF
keymaster module name is Keymaster QTI HAL
keymaster version is 256
Found keymaster1 module, using keymaster1 API.
Signing safely-padded object
Using scrypt with keymaster for cryptfs KDF
keymaster module name is Keymaster QTI HAL
keymaster version is 256
Found keymaster1 module, using keymaster1 API.
Signing safely-padded object
load_crypto_mapping_table: target_type = req-crypt
load_crypto_mapping_table: real_blk_name = /dev/block/sda9, extra_params = fde_enabled ice
I:Found no matching fstab entry for uevent device '/devices/virtual/block/dm-0' - add
I:Found no matching fstab entry for uevent device '/devices/virtual/block/dm-0' - change
Password matches
Data successfully decrypted, new block device: '/dev/block/dm-0'

And here's how it detects the filesystem:

I:mount -o bind '/data/media/0' '/sdcard' process ended with RC=0
/data | /dev/block/dm-0 | Size: 24935MB Used: 315MB Free: 23784MB Backup Size: 315MB
Flags: Can_Be_Mounted Can_Be_Wiped Can_Be_Backed_Up Wipe_During_Factory_Reset Wipe_Available_in_GUI IsPresent Can_Be_Encrypted Is_Encrypted Is_Decrypted Has_Data_Media Can_Encrypt_Backup Use_Userdata_Encryption Is_Storage Is_Settings_Storage
Symlink_Path: /data/media/0
Symlink_Mount_Point: /sdcard
Primary_Block_Device: /dev/block/sda9
Decrypted_Block_Device: /dev/block/dm-0
Length: -16384
Display_Name: data
Storage_Name: Internal Storage
Backup_Path: /data
Backup_Name: data
Backup_Display_Name: Data
Storage_Path: /data/media/0
Current_File_System: f2fs
Fstab_File_System: ext4
Backup_Method: files
MTP_Storage_ID: 65537
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] DEEPCA:
Guys, need help.

I have flash the last version Twrp for le max 2, and now recovery request a password for decrypt and give me access to my storage.

ROM: AICP 13.1 (Last build)
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] Darktron13:
Try reinstalling twrp.

If it doesn't help I think you need to erase userdata.
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] DEEPCA:
Other guy tell me i need install twrp with quota support.. What is this? And where i found it?
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] kkcheong:
I install latest TWRP and decrypt is working now
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] ThE_MarD:
Heyyo, please go to my first post and click the link for test builds.

You will need to flash it via bootloader / fastboot.

Otherwise? A usb flash drive in TWRP as TWRP won't be able to read your data partition until you flash that test version of TWRP.
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] gentano:
With root he could copy the image file to the system partition (within Android and a compatible root file explorer) and flash it from there directly through TWRP - thats the way I did it. :)
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] ThE_MarD:
Heyyo, ah true enough! That is a way to get around data hehe.

I guess at the same time one could use developer settings adb debug, enable root for adb only and then use a PC with adb push TWRP.img /

But yeah, lots of options to do it which is good
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] prajjwal.laad:
Or simply use flashify app from PS if you have root installed. Easiest way. :D
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] lalit.abl:
[MENTION=7565215]CrisBalGreece[/MENTION]

Dear sir,

I am using your TWRP version with lots of extra utilities. Now While Installing AICP 13.1 Latest Build, your TWRP is not recognising Internal Storage. After a lot of effort I have installed latest test build of [MENTION=6235294]ThE_MarD[/MENTION] the problem solved.

I am humbly requesting herewith kindly update you TWRP so that I can use it in future.

Thanks.
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] CrisBalGreece:
Hi... no needed any more read this.. https://xdaforums.com/showpost.php?p=76280748&postcount=105

The OP developer here making great job with so many options...

Congrat's [MENTION=6235294]ThE_MarD[/MENTION] :good:
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] ThE_MarD:
Heyyo, thanks to both of you for the kind remarks. :)

I have contacted the maintainers of the TWRP if they can run a new production build for x2 that will include f2fs and quota support but that's all I can do for official builds tbh. I can only request updated builds I don't have permissions to build them myself. My guess is I'm still new so it would probably be unwise to trust a new guy with such an important Android project.
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] GalaticStryder:
Vanilla TWRP

I had a copy of TWRP 8.1 around my Arch Linux /home folder so I took the time to build it with my F2FS conversion patch.

Anyone willing to try it: https://github.com/GalaticStryder/lineage_releases/releases/tag/recovery

This should allow F2FS encryption if your ROM supports it.
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] ThE_MarD:
Heyyo, ok cool thanks! I'll pass this link out for others to also test

Official btw everyone won't be able to convert data partition to f2fs due to reserved length bug (that is, if they start another production build). I'd recommend using GalaticStryder TWRP builds if you wish to convert data to f2fs and report back if it works properly.
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] Jabbzz:
Converting data partition to F2FS works for me now. Thanks!
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] giaur:
Is default Lineage recovery still alive?
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] lalit.abl:
I used TWRP Unofficial test build and installed AICP 13.1 official oreo rom 19-04-2018. Now cannot boot other Naughat roms installed as secondary by Dual Boot Patcher. Do I have to revert back to ext4 partition format or something else.
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] ThE_MarD:
Heyyo, tbh no idea haven't tried it. If you wish you can always try it out. It's old school recovery with the volume up and down buttons and power button is to select menu options. It does not have a touch interface like TWRP and that's why I don't bother with it.

Unfortunately it seems Dual Boot Patcher isn't compatible to Oreo ROMs yet...

Even so, some Nougat ROMs will require sdcardfs to be disabled. Any ROM that was maintained by Andr68rus does have fixed sdcardfs though and won't require sdcardfs to be disabled.
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] lalit.abl:
Dear sir,

Before installing AICP 13.1 supporting f2fs, Nougat roms were working as secondary rom in Dual Boot Patcher. But after installing , AICP 13.1 those nougat roms are not working even after reinstalling. I think that nougat roms required to be converted from ext4 file system to f2fs file system. Then they will work properly. Dual Boot Patcher is working well for Oreo Rom as Primary rom and Nougat or Marshmallow roms as secondary roms. Please suggest a method to convert roms from ext4 to f2fs file system.
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] ThE_MarD:
Heyyo, the ROMs don't actually convert to f2fs. They only enable support for f2fs.

It could be quota support causing incompatibility as it does improve storage performance it does require TWRP and I'm guessing for Dual Boot Patcher to have custom ROMs with quota support too. I don't think any Nougat or marshmallow ROMs have quota support....
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] LR-user:
Timed reboot for unofficial-TWRP during restore

I've stored my backups via USB-OTB on 32GB-MicroSDcard class10 . . . :rolleyes:

Tested Unofficial-X2-LOS15.1-ROM and wanted to revert to official-version via my backup.

BUT restore of everything lasts too long, so there is a reboot BEFORE system(~3Gb) and system.img(~4GB) are restored. :(

When trying full-restore via 3 strokes, I succeed. :good:

1. stroke till recovery

2. stroke system

3. stroke system.img

Handling is not perfect, but o.k. . . .

Is there possibility to, let's say, double the time before automatic reboot comes in for next inofficial-f2fs-TWRP-build? :confused:
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] Digiboy2010:
i have with build 14.04 and 17.04. the same problem

i think the charging is to slow, other oreo rom charge with 3000mA, Nougat i think up to 4000mA, but now i have under 2000, is that normal?

X820 6/64GB version

Cable is ok, i test also 2 charger
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] thunder k:
Hello,

Sorry but how update TWRP by usb OTG ?

because I flash with the TWPR 3.2.1 .img file but : error. (my TWRP is 3.0.2)

thanks
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] ThE_MarD:
Heyyo, you shouldn't need to restore both system and system.img. They're both the same thing. I'd recommend just restoring system.
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] ThE_MarD:
Heyyo, tbh I haven't looked into charging speeds of TWRP but it does not have fast charge.

Copy the TWRP of your choice to your usb drive.

Reboot your device to TWRP

Go into advanced > mount USB OTG

Back to main menu

Go into Install > Install Image > go into USB OTG > select TWRP IMG of choice

Install

Reboot to recovery
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] peace30:
The old twrp 3.2.1-1 had some issue like I was unbale to flash eui 19s, couco92 28s, slim7. When I flashed them process continuously goes on I had to downgrade to 3.2.1-0 . Does this newer version has the same issue?
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] ThE_MarD:
Heyyo, did it give you any error messages? Can you please provide logcat?
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] peace30:
Yes for slim7 and eui 19s it gives error and couco92 28s continuously goes on. I have to cancel it and flash another rom. I tried this after 2 days of releasing 3.2.1-1 but now I'm on 3.2.1-0 since last 15 days because I tried almost all rom but none of them solved my issue. After taking backup I will try to provide you logcat and check the newer version as well. Thanks for your incredible work that gives new birth to our devices.
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] chirameto:
reboot problem

Hi ThE_MarD,

There's a little problem I have found with your latest TWRP both official 3.2.1-2 and unofficial dated April 13 and also on GalaticStryder build.

TWRP won't reboot the phone after it receive instruction from update.zip.

From attached picture, I try to update AcoslimEUI OTA file.

Waiting seems to be forever. Maybe it is the same problem as peace30 reported just above me. Maybe not.

If I force reboot by holding power button, it seems the update has been installed correctly. It just not reboot automatically.

Interestingly, TWRP 3.2.1 made by CBG does reboot the phone properly.

Another minor thing, from the picture, the screen shot taken after reboot command were store in /tmp folder which is disappear after reboot.

Screen shot taken before flashing the zip can be retrieved properly in /sdcard/picture.

Thanks for your great support.
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] neo299:
^^

This also happened to me when I tried to flash a different modem zip. Doesn't restart automatically so I had to force restart by holding the power button. Using latest official version.
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] an.pandiyaraj:
Any help appreciated...
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] ThE_MarD:
Heyyo, can you please state of that is with latest official or unofficial build?
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] an.pandiyaraj:
Im using yourUnofficial build..
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] ThE_MarD:
Please try the official build. I believe it doesn't suffer the same issue as the unofficial build but I could be wrong.

If the official build doesn't work? Please try GalaticStryder's build.
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] an.pandiyaraj:
Official build didn't work.... Could you pls share the link
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] Darktron13:
[MENTION=6235294]ThE_MarD[/MENTION] I got that same issue thats what I told you and a work arround is to do it via fastboot. Then you'll be able to do it via twrp.
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] an.pandiyaraj:
Could you please share the steps thru fastboot?
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] Darktron13:
-Note it will erase your data-

Reboot to fastboot

Connect phone to pc

Enter this command --> fastboot format:f2fs userdata

After done --> fastboot reboot recovery

Check your file system

Done.

This method can be used for /system and /cache to

System command --> fastboot format:f2fs system

Cache command --> fastboot format:f2fs cache

-Note this will format your data, cache or system-

This will do the f2fs conversion and fix future changing in twrp.

---------- Post added at 02:19 AM ---------- Previous post was at 02:15 AM ----------

Please post back if it worked

It did for me I had it for /system under latest Official twrp 3.2.1-2
[LeEco Le Max 2 ROMs, Kernels, Recoveries, & Other ] an.pandiyaraj:
Thanks for prompt response.... I'll try and let you know