[f2fs-dev] [PATCH 2/2] f2fs-tools: create sparse file first before stat

2018-11-15 Thread Jaegeuk Kim
We must create a sparse file first before calling stat(). Fixes: eb9d8037ed3b ("f2fs-tools: avoid mounting f2fs if tools already open the device") Signed-off-by: Jaegeuk Kim --- lib/libf2fs.c | 23 +++ 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/lib/libf2f

[f2fs-dev] [PATCH 1/2] f2fs-tools: show versions if exist

2018-11-15 Thread Jaegeuk Kim
If it's not defined, we need to skip to show the definition. Signed-off-by: Jaegeuk Kim --- include/f2fs_fs.h | 4 1 file changed, 4 insertions(+) diff --git a/include/f2fs_fs.h b/include/f2fs_fs.h index cdf54e5..65cc8fd 100644 --- a/include/f2fs_fs.h +++ b/include/f2fs_fs.h @@ -1326,7 +13

Re: [f2fs-dev] [PATCH v2] f2fs: fix race between write_checkpoint and write_begin

2018-11-15 Thread Chao Yu
On 2018/11/15 16:24, Jaegeuk Kim wrote: > Could you please check this? > > https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs.git/commit/?h=dev-test Reviewed +1 Thanks, ___ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.n

Re: [f2fs-dev] [PATCH] f2fs: add bio cache for IPU

2018-11-15 Thread Chao Yu
Hi Jaeguek, On 2018/11/15 15:52, Jaegeuk Kim wrote: > Hi Chao, > > I suspect this brings a system stuck by missing bio being flushed. Please > check > the changes. Oh, let me check this patch. Thanks, > > Thanks, > > On 10/23, Chao Yu wrote: >> SQLite in Wal mode may trigger sequential IPU

Re: [f2fs-dev] [PATCH v2] f2fs: fix race between write_checkpoint and write_begin

2018-11-15 Thread Jaegeuk Kim
On 11/15, Sheng Yong wrote: > > > On 2018/11/15 9:59, Chao Yu wrote: > > On 2018/11/14 19:34, Sheng Yong wrote: > > > The following race could lead to inconsistent SIT bitmap: > > > > > > Task A Task B > > > == == > > > f2fs_write_checkpo