Re: [f2fs-dev] [PATCH] f2fs: fix to avoid data corruption by forbidding SSR overwrite

2019-09-26 Thread Eric Biggers
On Fri, Aug 16, 2019 at 11:03:34AM +0800, Chao Yu wrote: > There is one case can cause data corruption. > > - write 4k to fileA > - fsync fileA, 4k data is writebacked to lbaA > - write 4k to fileA > - kworker flushs 4k to lbaB; dnode contain lbaB didn't be persisted yet > - write 4k to fileB > -

Re: [f2fs-dev] [PATCH] f2fs: fix to avoid data corruption by forbidding SSR overwrite

2019-09-26 Thread Jaegeuk Kim
On 09/26, Eric Biggers wrote: > On Fri, Aug 16, 2019 at 11:03:34AM +0800, Chao Yu wrote: > > There is one case can cause data corruption. > > > > - write 4k to fileA > > - fsync fileA, 4k data is writebacked to lbaA > > - write 4k to fileA > > - kworker flushs 4k to lbaB; dnode contain lbaB didn't

Re: [f2fs-dev] [PATCH] f2fs: fix to avoid data corruption by forbidding SSR overwrite

2019-09-26 Thread Jaegeuk Kim
On 09/26, Jaegeuk Kim wrote: > On 09/26, Eric Biggers wrote: > > On Fri, Aug 16, 2019 at 11:03:34AM +0800, Chao Yu wrote: > > > There is one case can cause data corruption. > > > > > > - write 4k to fileA > > > - fsync fileA, 4k data is writebacked to lbaA > > > - write 4k to fileA > > > - kworker

[f2fs-dev] [PATCH] f2fs: mark recovery flag correctly in read_raw_super_block()

2019-09-26 Thread Chengguang Xu via Linux-f2fs-devel
On the combination of first fail and second success, we will miss to mark recovery flag because currently we reuse err variable in the loop. Signed-off-by: Chengguang Xu --- fs/f2fs/super.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/fs/f2fs/super.c b/fs/f2fs/super.

Re: [f2fs-dev] [PATCH] mkfs/Makefile.am: fix build without blkid

2019-09-26 Thread Chao Yu
On 2019/9/23 2:41, Fabrice Fontaine wrote: > Commit d56232bc1640e2a3ffc412faff42cd8e77dbb8dd hardcoded -lblkid in > libf2fs_format_la_LDFLAGS which breaks the build with --without-blkid > option so use ${libblkid_LIBS} instead > > Signed-off-by: Fabrice Fontaine Reviewed-by: Chao Yu Thanks,