[Nexus 5 Android Development] danarama:
OK everyone, here is a TEST BUILD.

This build includes F2FS Migration and formatting support. I am looking for people to test this. I need serious testers only. People familiar with adb, fastboot etc and are configured to use these tools so for this reason, the test version is a recovery.img file, not a flashable zip. You know what to do.

Testers, I also expect you to be familiar with what F2FS is and be aware of the fact that you need F2FS support in your Android kernel to be able to do this testing.

Testing:

Here's what I need you guys to test. Migration of /data to F2FS. I do not need you to test /system or /cache - these will not work. Do NOT format /system or /cache as F2FS.

OK, ready?

Here are the steps:

Ensure you have an F2FS kernel (put it on your sdcard now) or have the .img ready on your computer

Take a full Nandroid backup

backup your ENTIRE /sdcard to PC (adb pull is as good as the rest - and also a good test that you know what you're doing)

Flash the recovery img

Go to "mounts and storage"

Press "toggle f2fs ext4 migration"

Press "format /data and /data/media (/sdcard)"

Select f2fs and "Yes" - Your /data and /sdcard are now blank

adb push your clockworkmod folder back to /sdcard (and f2fs kernel if you're using a zip) - You may need to mkdir /data/media/0 as 0 *may be missing (please let me know)

Restore your Nandroid backuphttp://d-h.st/7V8

Flash your F2FS kernel - If you haven't got one, you can use THIS by [MENTION=5499742]dennes544[/MENTION] (which is actually what I used in the recovery btw)

In "Mounts and storage" mount data

adb shell, type "mount" to confirm the formatting has worked (see below)

Boot to android and check everything is working (no decryption password prompt, your data exists

Copy sdcard data back, whilst in Android is best

Here is what you're looking for in the "mount" command

rootfs on / type rootfs (rw)
tmpfs on /dev type tmpfs (rw,seclabel,nosuid,relatime,mode=755)
devpts on /dev/pts type devpts (rw,seclabel,relatime,mode=600)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,seclabel,relatime)
selinuxfs on /sys/fs/selinux type selinuxfs (rw,relatime)
tmpfs on /tmp type tmpfs (rw,seclabel,relatime)
tmpfs on /storage type tmpfs (rw,seclabel,relatime,mode=050,gid=1028)
tmpfs on /mnt/secure type tmpfs (rw,seclabel,relatime,mode=700)
tmpfs on /mnt/fuse type tmpfs (rw,seclabel,relatime,mode=775,gid=1000)
/dev/block/platform/msm_sdcc.1/by-name/userdata on [B]/data type f2fs [/B](rw,seclabel,nodev,noatime,nodiratime,background_gc=on,user_xattr,inline_xattr,acl,errors=continue,active_logs=6)
/dev/block/platform/msm_sdcc.1/by-name/cache on /cache type ext4 (rw,seclabel,relatime,journal_checksum,journal_async_commit,noauto_da_alloc,errors=panic,data=ordered)

Please, please, please, if anything above doesn't make sense to you - DON'T TEST. Backup, backup and backup. Only Test /data.

Many thanks everyone...

Here is the recovery.img

Please note, the migration toggle is disabled again as soon as you leave the menu. The format options will format to whatever each partition is already formatted to whilst the toggle is disabled. So if you previously formatted to f2fs and then reboot recovery and format again, it weill continue to format to f2fs until you enable migration and choose the opposite option (ext4)