Ok, so I try using iostat. Now, is iostat reading below the fs level? I am not sure about this. If the f2fs is handed 100 bytes to write, does iostat see the 100 bytes or the bytes actually written to disk? iostat generates stats at the block device level and the filesystem works at the block device level. Does iostat gather the stats of the original data or the f2fs compressed data?
I ran iostat for both filesystems before and after the copy and the differences were:
KB read 815744 from the uncompressed
KB written 999900 to the compressed
Compression working? Who knows.
$ du -s /home
750922 /home
$ du -s /mnt/home
749086 /mnt/home
Hmm.
Note: There is another difference between the two filesystems. The compressed was also formatted with sb_checksum and inode_checksum enabled. I stumbled upon a recent patch submitted for fsck.f2fs and these checksums play a roll. Does this add to bytes written? Dunno.
I guess you missed my post above after I looked at your link you posted. That was a fix for an issue I opened for the 5.8 kernel a long time ago. They fixed it at the time and looks like it got left out in a rebase and the fixed it again and yes I checked with the 5.10 kernel and the fix is still there and yes the current issue with the 5.10 kernel is still there.
Yes the issue is if you are booting on a usb drive with the pi4 8G board and the linux-rpi4-rc 5.10.rc3-1 kernel only.
Also there is no issue with the pi4 8G board and the linux-rpi4-rc 5.10.rc3-1 kernel booting from a sdcard. It does just fine and it does ok with the pi4 4G board and the linux-rpi4-rc 5.10.rc3-1 kernel booting from sdcard or usb drive.
Another way to make it work is use the bcm2711 .dtb from the linux-rpi4-mainline (kernel 5.9) package and then use the latest raspberrypi-bootloader / raspberrypi-bootloader-x packages in the unstable branch.
I lately been keeping the kernel 5.9 .dtb in /boot and putting -sav extension on it so all I have to do is copy it over after installing the 5.10 kernel.
It looks lke they did. I will compile it tomorrow.
From looking at the commit it is concerning that they did not pay any attention to me when I opened an issue 2 weeks ago and wanted me to close it. I even in my last post told them where the issue was. They only did something when some one in their forum mentioned it.
Scroll down to the last post to see where I told them where the issue was:
Anyway we will see tomorrow what the new compile will do.
I have another issue with the latest linux-rpi4 released yesterday where bluetooth is not working right. I was reluctant to create an issue with it because they seem to not want to pay attention lately. What is the use of filing an issue?