Re: [f2fs-dev] [PATCH] f2fs: replace ERANGE with ENAMETOOLONG in file name length check

2021-06-14 Thread Gao Xiang
On Tue, Jun 15, 2021 at 11:19:24AM +0800, wangxiaojun (N) wrote: > > 在 2021/6/15 10:31, Gao Xiang 写道: > > On Tue, Jun 15, 2021 at 09:35:09AM +0800, Wang Xiaojun wrote: > > > ERANGE indicates that the math result is not representative. Here, > > > ENAMETOOLONG is used to replace ERANGE. > > > >

Re: [f2fs-dev] [PATCH] generic/260: f2fs is also special

2021-06-14 Thread Sun Ke
to linux-f2fs-devel@lists.sourceforge.net 在 2021/6/11 19:22, Sun Ke 写道: It seem that f2fs also special like btrfs. [+] Default length with start set (should succeed) [+] Length beyond the end of fs (should succeed) [+] Length beyond the end of fs with start set (should succeed) +After the

Re: [f2fs-dev] [PATCH] generic/103: leave more space for f2fs

2021-06-14 Thread Sun Ke
to linux-f2fs-devel@lists.sourceforge.net 在 2021/6/11 19:22, Sun Ke 写道: It failed on f2fs: QA output created by 103 +fallocate: No space left on device Silence is golden. ... Try to leave ~512KB, but during the fallocate, f2fs will be filled. Provide error prompt: "falloca

Re: [f2fs-dev] [PATCH] common/rc: f2fs do not support metadata journaling

2021-06-14 Thread Sun Ke
在 2021/6/11 19:22, Sun Ke 写道: In generic/50, touch 100 files, go down the fs immediately, Then umount and set the disk readi-only. Try to mount it again without \-o norecovery\, it should fail, because it can not recovery on a read-only device. But f2fs mount successfully and the test fail. f2

Re: [f2fs-dev] [PATCH] f2fs: replace ERANGE with ENAMETOOLONG in file name length check

2021-06-14 Thread wangxiaojun (N)
在 2021/6/15 10:31, Gao Xiang 写道: On Tue, Jun 15, 2021 at 09:35:09AM +0800, Wang Xiaojun wrote: ERANGE indicates that the math result is not representative. Here, ENAMETOOLONG is used to replace ERANGE. Signed-off-by: Wang Xiaojun I don't think ENAMETOOLONG is a valid return code for {g,s}etx

[f2fs-dev] [PATCH v3] generic/042: make a bigger img for f2fs

2021-06-14 Thread Sun Ke
f2fs-utils 1.9.0 needs at least 38 MB space for f2fs image. However, f2fs-utils 1.14.0 needs at least 52 MB. Not sure if it will change again. So, just set it to 128M. Signed-off-by: Sun Ke Reviewed-by: Chao Yu --- tests/generic/042 | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) d

Re: [f2fs-dev] [PATCH] f2fs: replace ERANGE with ENAMETOOLONG in file name length check

2021-06-14 Thread Gao Xiang
On Tue, Jun 15, 2021 at 09:35:09AM +0800, Wang Xiaojun wrote: > ERANGE indicates that the math result is not representative. Here, > ENAMETOOLONG is used to replace ERANGE. > > Signed-off-by: Wang Xiaojun I don't think ENAMETOOLONG is a valid return code for {g,s}etxattr. https://man7.org/linux/

[f2fs-dev] [PATCH] f2fs: replace ERANGE with ENAMETOOLONG in file name length check

2021-06-14 Thread Wang Xiaojun
ERANGE indicates that the math result is not representative. Here, ENAMETOOLONG is used to replace ERANGE. Signed-off-by: Wang Xiaojun --- fs/f2fs/xattr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/f2fs/xattr.c b/fs/f2fs/xattr.c index c8f34decbf8e..eb827c10e970 10