F2FS on USB stick does not work

F2FS on USB stick does not work:

...
[   82.034411] F2FS-fs (sda1): Wrong segment_count / block_count (7489 > 0)
[   82.039839] F2FS-fs (sda1): Can't find valid F2FS filesystem in 1th superblock
[   82.048237] F2FS-fs (sda1): Wrong segment_count / block_count (7489 > 0)
[   82.053733] F2FS-fs (sda1): Can't find valid F2FS filesystem in 2th superblock
[   82.061426] F2FS-fs (sda1): Wrong segment_count / block_count (7489 > 0)
[   82.067670] F2FS-fs (sda1): Can't find valid F2FS filesystem in 1th superblock
[   82.074824] F2FS-fs (sda1): Wrong segment_count / block_count (7489 > 0)
[   82.081540] F2FS-fs (sda1): Can't find valid F2FS filesystem in 2th superblock

I use the Easybox 904xDSL with snapshot from 14.12.2018
Here looks like the same problem
It does not work when i format the stick on my PC and it does not work when i format the stick on the router
I know it was working a month before.

Does f2fs working by everyone on a new snapshoot ?

1 Like

Can confirm that here...

1 Like

Same problem here. :frowning:

Might be related:
https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=d2b16a59d567135c683cd28906de6086e40ec880

and the discussion regarding big endian:

Still not fix, same old issue. Im tested on erlite.

OpenWrt SNAPSHOT, r8846-99ddff0
root@OpenWrt:/# opkg list |grep f2fs*
libf2fs - 1.12.0-1
mkf2fs - 1.12.0-1

The Error is only on my Easybox 904x (mips) not on my Raspberry Pi 3 (arm)
Im shure it is an general Kernel Problem on ca~ newer them 4.14.82, because, i try differend f2fs-tools on different maschines: no working, same error
I build a very raw f2fs patch with diff from the old 4.14.82 kernel to the newer 4.14.89 and put them to:
target/linux/lantiq/patches-4.14
and it works but with this message:

[  147.088665] F2FS-fs (sda1): Found nat_bits in checkpoint
[  151.578307] F2FS-fs (sda1): Mounted with checkpoint version = 6551e073

but it works

here are the patch: 4099-fix-f2fs-on-mips.patch
please put them to:
target/linux/lantiq/patches-4.14
or other target mips patch-4.14 directory

@ rrcsaba which device ?
It will be interessting too if f2fs work/not work (without patch) on other mips/no mips devices

It works on little endian devices.

Despite __le being everywhere in the code, basically no testing is being done on big endian devices.

There's a patch to fix this error in the mailing list. Should be available in time for the next release.

Thanks @Plonk34
Your patch working with octeon soc.

I've uploaded a upstream fix that made the MyBook Live (PowerPC SoC) work again:

https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=cb0f39c9cd698f089de8f0cacfbc5cc69655e430

Confirm new commit work with octeon soc. tks devs.