Re: [f2fs-dev] [PATCH v5] f2fs: fix compressed file start atomic write may cause data corruption

2022-03-18 Thread Chao Yu
On 2022/3/18 9:23, Fengnan Chang wrote: When compressed file has blocks, f2fs_ioc_start_atomic_write will succeed, but compressed flag will be remained in inode. If write partial compreseed cluster and commit atomic write will cause data corruption. This is the reproduction process: Step 1: crea

[f2fs-dev] [PATCH v5] f2fs: fix compressed file start atomic write may cause data corruption

2022-03-17 Thread Fengnan Chang via Linux-f2fs-devel
When compressed file has blocks, f2fs_ioc_start_atomic_write will succeed, but compressed flag will be remained in inode. If write partial compreseed cluster and commit atomic write will cause data corruption. This is the reproduction process: Step 1: create a compressed file ,write 64K data , cal