Re: [f2fs-dev] f2fs do DIO write make file corruption

From: Chao Yu
Date: Tue Aug 10 2021 - 23:03:20 EST


On 2021/8/11 10:48, Wu Bo wrote:
I use the following command to create a file, the file may got corruption:
f2fs_io write 2 0 512 inc_num dio $path

And when I use bio or to set the chunk size to 1 block, the file is
normal. The commands as following:
f2fs_io write 2 0 512 inc_num buffered $path
f2fs_io write 1 0 512 inc_num dio $path

I find this bug on old kernel version 4.14.117, and not find on version
4.19.152. So this bug is fixed. Can anyone can tell me which patch fixed
this bug?

Not sure,

https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-4.19.y&id=7bae8b6b73e46c307fa355ce086800b7ad6610f8

Thanks,



_______________________________________________
Linux-f2fs-devel mailing list
Linux-f2fs-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel