Conversation

I don't get jffs2.
Creating files obviously takes space.
But why does REMOVING files (from the jffs2, not what it's overlayed over!) Also take disk space?

Why can i just create and delete a file repeatedly to fill up the disk?

1
0
0

@RedstoneLP2 It’s because of how nand flash works

you cannot directly overwrite nand flash, you have to first erase a larger order of blocks. As such deletions are first logged to disk and then the garbage collector can perform the necessary moving of data and erasing

1
0
1

@charlotte
What's the average interval for the garbage collector?

1
0
0

@RedstoneLP2 ever since mmc became widespread there is not really a reason to use raw nand filesystems like jffs2

1
0
1

@charlotte i'm messing around with an off-the-shelf router/AP running openwrt

1
0
1

@RedstoneLP2 ah routers yeah they have always been cost cut to extreme hell

0
0
1