[PATCH] f2fs: return proper error code

2016-07-10 Thread Tiezhu Yang
When the length of file name is more than F2FS_NAME_LEN, it should return -ENAMETOOLONG. Signed-off-by: Tiezhu Yang --- 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 28a5023..b225062 100644 --- a/fs/f2fs/xattr.c ++

Re: [f2fs-dev] [PATCH] f2fs: return proper error code

2016-07-11 Thread Chao Yu
On 2016/7/11 7:20, Tiezhu Yang wrote: > When the length of file name is more than F2FS_NAME_LEN, Seem @name indicates a xattr/key name, not a file name. Thanks, > it should return -ENAMETOOLONG. > > Signed-off-by: Tiezhu Yang > --- > fs/f2fs/xattr.c | 4 ++-- > 1 file changed, 2 insertions(+)

Re:Re: [f2fs-dev] [PATCH] f2fs: return proper error code

2016-07-12 Thread Tiezhu Yang
At 2016-07-12 09:45:43, "Chao Yu" wrote: >On 2016/7/11 7:20, Tiezhu Yang wrote: >> When the length of file name is more than F2FS_NAME_LEN, > >Seem @name indicates a xattr/key name, not a file name. Yes, you are right. Sorry for the noise. Thanks,