Re: [f2fs-dev] [PATCH v4 3/3] f2fs: Support case-insensitive file name lookups

2019-08-21 Thread Chao Yu
On 2019-7-24 7:05, Daniel Rosenberg via Linux-f2fs-devel wrote: > +static int f2fs_d_compare(const struct dentry *dentry, unsigned int len, > + const char *str, const struct qstr *name) > +{ > + struct qstr qstr = {.name = str, .len = len }; > + > + if

Re: [f2fs-dev] [PATCH v4 3/3] f2fs: Support case-insensitive file name lookups

2019-07-31 Thread Jaegeuk Kim
On 08/01, Chao Yu wrote: > Hi Nathan, > > Thanks for the report! :) > > On 2019/8/1 1:57, Nathan Chancellor wrote: > > Hi all, > > > > > > > >> diff --git a/fs/f2fs/hash.c b/fs/f2fs/hash.c > >> index cc82f142f811f..99e79934f5088 100644 > >> --- a/fs/f2fs/hash.c > >> +++ b/fs/f2fs/hash.c > >>

Re: [f2fs-dev] [PATCH v4 3/3] f2fs: Support case-insensitive file name lookups

2019-07-31 Thread Chao Yu
Hi Nathan, Thanks for the report! :) On 2019/8/1 1:57, Nathan Chancellor wrote: > Hi all, > > > >> diff --git a/fs/f2fs/hash.c b/fs/f2fs/hash.c >> index cc82f142f811f..99e79934f5088 100644 >> --- a/fs/f2fs/hash.c >> +++ b/fs/f2fs/hash.c >> @@ -14,6 +14,7 @@ >> #include >> #include >>

Re: [f2fs-dev] [PATCH v4 3/3] f2fs: Support case-insensitive file name lookups

2019-07-31 Thread Nathan Chancellor
Hi all, > diff --git a/fs/f2fs/hash.c b/fs/f2fs/hash.c > index cc82f142f811f..99e79934f5088 100644 > --- a/fs/f2fs/hash.c > +++ b/fs/f2fs/hash.c > @@ -14,6 +14,7 @@ > #include > #include > #include > +#include > > #include "f2fs.h" > > @@ -67,7 +68,7 @@ static void str2hashbuf(const

Re: [f2fs-dev] [PATCH v4 3/3] f2fs: Support case-insensitive file name lookups

2019-07-29 Thread Chao Yu
On 2019-7-29 15:22, Chao Yu wrote: > On 2019/7/29 14:27, Jaegeuk Kim wrote: >> On 07/28, Chao Yu wrote: >>> On 2019-7-24 7:05, Daniel Rosenberg via Linux-f2fs-devel wrote: /* Flags that are appropriate for regular files (all but dir-specific ones). */ #define F2FS_REG_FLMASK

Re: [f2fs-dev] [PATCH v4 3/3] f2fs: Support case-insensitive file name lookups

2019-07-29 Thread Chao Yu
On 2019/7/29 14:27, Jaegeuk Kim wrote: > On 07/28, Chao Yu wrote: >> On 2019-7-24 7:05, Daniel Rosenberg via Linux-f2fs-devel wrote: >>> /* Flags that are appropriate for regular files (all but dir-specific >>> ones). */ >>> #define F2FS_REG_FLMASK(~(F2FS_DIRSYNC_FL | >>>

Re: [f2fs-dev] [PATCH v4 3/3] f2fs: Support case-insensitive file name lookups

2019-07-29 Thread Jaegeuk Kim
On 07/28, Chao Yu wrote: > On 2019-7-24 7:05, Daniel Rosenberg via Linux-f2fs-devel wrote: > > /* Flags that are appropriate for regular files (all but dir-specific > > ones). */ > > #define F2FS_REG_FLMASK(~(F2FS_DIRSYNC_FL | > > F2FS_PROJINHERIT_FL)) > > We missed to add

Re: [f2fs-dev] [PATCH v4 3/3] f2fs: Support case-insensitive file name lookups

2019-07-27 Thread Chao Yu
On 2019-7-24 7:05, Daniel Rosenberg via Linux-f2fs-devel wrote: > /* Flags that are appropriate for regular files (all but dir-specific ones). > */ > #define F2FS_REG_FLMASK (~(F2FS_DIRSYNC_FL | > F2FS_PROJINHERIT_FL)) We missed to add F2FS_CASEFOLD_FL here to exclude it in

[f2fs-dev] [PATCH v4 3/3] f2fs: Support case-insensitive file name lookups

2019-07-23 Thread Daniel Rosenberg via Linux-f2fs-devel
Modeled after commit b886ee3e778e ("ext4: Support case-insensitive file name lookups") """ This patch implements the actual support for case-insensitive file name lookups in f2fs, based on the feature bit and the encoding stored in the superblock. A filesystem that has the casefold feature set