Re: [PATCH v5 7/8] fat (exportfs): rebuild directory-inode if fat_dget() fails

2013-01-28 Thread Namjae Jeon
2013/1/28, OGAWA Hirofumi : > Namjae Jeon writes: > Although checking several routines to check hang case you said, I didn't find anything. And There is no any race on test result also. Am I missing something ? Let me know your opinion. >>> >>> Hm, it's read-only. So, there

Re: [PATCH v5 7/8] fat (exportfs): rebuild directory-inode if fat_dget() fails

2013-01-28 Thread OGAWA Hirofumi
Namjae Jeon writes: >>> Although checking several routines to check hang case you said, I >>> didn't find anything. >>> And There is no any race on test result also. Am I missing something ? >>> Let me know your opinion. >> >> Hm, it's read-only. So, there may not be race for now, I'm sure there

Re: [PATCH v5 7/8] fat (exportfs): rebuild directory-inode if fat_dget() fails

2013-01-28 Thread OGAWA Hirofumi
Namjae Jeon linkinj...@gmail.com writes: Although checking several routines to check hang case you said, I didn't find anything. And There is no any race on test result also. Am I missing something ? Let me know your opinion. Hm, it's read-only. So, there may not be race for now, I'm sure

Re: [PATCH v5 7/8] fat (exportfs): rebuild directory-inode if fat_dget() fails

2013-01-28 Thread Namjae Jeon
2013/1/28, OGAWA Hirofumi hirof...@mail.parknet.co.jp: Namjae Jeon linkinj...@gmail.com writes: Although checking several routines to check hang case you said, I didn't find anything. And There is no any race on test result also. Am I missing something ? Let me know your opinion. Hm, it's

Re: [PATCH v5 7/8] fat (exportfs): rebuild directory-inode if fat_dget() fails

2013-01-27 Thread Namjae Jeon
2013/1/26, OGAWA Hirofumi : > Namjae Jeon writes: > >> 2013/1/20, OGAWA Hirofumi : >>> Namjae Jeon writes: >>> We rewrite patch as your suggestion using dummy inode. Would please you review below patch code ? >>> >>> Looks like good as initial. Clean and shorter. >>> >>> Next is, we

Re: [PATCH v5 7/8] fat (exportfs): rebuild directory-inode if fat_dget() fails

2013-01-27 Thread Namjae Jeon
2013/1/26, OGAWA Hirofumi hirof...@mail.parknet.co.jp: Namjae Jeon linkinj...@gmail.com writes: 2013/1/20, OGAWA Hirofumi hirof...@mail.parknet.co.jp: Namjae Jeon linkinj...@gmail.com writes: We rewrite patch as your suggestion using dummy inode. Would please you review below patch code ?

Re: [PATCH v5 7/8] fat (exportfs): rebuild directory-inode if fat_dget() fails

2013-01-25 Thread OGAWA Hirofumi
Namjae Jeon writes: > 2013/1/20, OGAWA Hirofumi : >> Namjae Jeon writes: >> >>> We rewrite patch as your suggestion using dummy inode. Would please >>> you review below patch code ? >> >> Looks like good as initial. Clean and shorter. >> >> Next is, we have to think about race. I.e. if real

Re: [PATCH v5 7/8] fat (exportfs): rebuild directory-inode if fat_dget() fails

2013-01-25 Thread OGAWA Hirofumi
Namjae Jeon linkinj...@gmail.com writes: 2013/1/20, OGAWA Hirofumi hirof...@mail.parknet.co.jp: Namjae Jeon linkinj...@gmail.com writes: We rewrite patch as your suggestion using dummy inode. Would please you review below patch code ? Looks like good as initial. Clean and shorter. Next

Re: [PATCH v5 7/8] fat (exportfs): rebuild directory-inode if fat_dget() fails

2013-01-22 Thread Namjae Jeon
2013/1/20, OGAWA Hirofumi : > Namjae Jeon writes: > >> We rewrite patch as your suggestion using dummy inode. Would please >> you review below patch code ? > > Looks like good as initial. Clean and shorter. > > Next is, we have to think about race. I.e. if real inode was made, what > happens? Is

Re: [PATCH v5 7/8] fat (exportfs): rebuild directory-inode if fat_dget() fails

2013-01-22 Thread Namjae Jeon
2013/1/20, OGAWA Hirofumi hirof...@mail.parknet.co.jp: Namjae Jeon linkinj...@gmail.com writes: We rewrite patch as your suggestion using dummy inode. Would please you review below patch code ? Looks like good as initial. Clean and shorter. Next is, we have to think about race. I.e. if

Re: [PATCH v5 7/8] fat (exportfs): rebuild directory-inode if fat_dget() fails

2013-01-20 Thread OGAWA Hirofumi
Namjae Jeon writes: > We rewrite patch as your suggestion using dummy inode. Would please > you review below patch code ? Looks like good as initial. Clean and shorter. Next is, we have to think about race. I.e. if real inode was made, what happens? Is there no race? Thanks. > Subject:

Re: [PATCH v5 7/8] fat (exportfs): rebuild directory-inode if fat_dget() fails

2013-01-20 Thread OGAWA Hirofumi
Namjae Jeon linkinj...@gmail.com writes: We rewrite patch as your suggestion using dummy inode. Would please you review below patch code ? Looks like good as initial. Clean and shorter. Next is, we have to think about race. I.e. if real inode was made, what happens? Is there no race? Thanks.

Re: [PATCH v5 7/8] fat (exportfs): rebuild directory-inode if fat_dget() fails

2013-01-08 Thread Namjae Jeon
> > BTW, fat_search_long() was wrong as similar function. Actually it would > be fat_scan(), because we don't care longname entry. Hi OGAWA. We rewrite patch as your suggestion using dummy inode. Would please you review below patch code ? Thanks.

Re: [PATCH v5 7/8] fat (exportfs): rebuild directory-inode if fat_dget() fails

2013-01-08 Thread Namjae Jeon
BTW, fat_search_long() was wrong as similar function. Actually it would be fat_scan(), because we don't care longname entry. Hi OGAWA. We rewrite patch as your suggestion using dummy inode. Would please you review below patch code ? Thanks.

Re: [PATCH v5 7/8] fat (exportfs): rebuild directory-inode if fat_dget() fails

2012-12-21 Thread Namjae Jeon
2012/12/21, OGAWA Hirofumi : > Namjae Jeon writes: > Hm, start with copy of fat_search_long() and refactoring it. With it, we will be able to avoid the fixed bugs. After that, we might be able to merge those somehow. Well, I'm not pretty sure without doing it

Re: [PATCH v5 7/8] fat (exportfs): rebuild directory-inode if fat_dget() fails

2012-12-21 Thread OGAWA Hirofumi
OGAWA Hirofumi writes: > Namjae Jeon writes: > >>> Yes, we can't use fat_search_long() as is, of course. However, we can >>> share the basic algorithm and code. >>> >>> The both are doing, >>> >>> 1) traverse the blocks chained by ->i_start. >>> 2) get the record (dirent) from blocks. >>> 3)

Re: [PATCH v5 7/8] fat (exportfs): rebuild directory-inode if fat_dget() fails

2012-12-21 Thread OGAWA Hirofumi
Namjae Jeon writes: >> Yes, we can't use fat_search_long() as is, of course. However, we can >> share the basic algorithm and code. >> >> The both are doing, >> >> 1) traverse the blocks chained by ->i_start. >> 2) get the record (dirent) from blocks. >> 3) check the detail of record >> >> The

Re: [PATCH v5 7/8] fat (exportfs): rebuild directory-inode if fat_dget() fails

2012-12-21 Thread OGAWA Hirofumi
Namjae Jeon writes: >>> Hm, start with copy of fat_search_long() and refactoring it. With it, we >>> will be able to avoid the fixed bugs. >>> >>> After that, we might be able to merge those somehow. Well, I'm not >>> pretty sure without doing it actually though. > Hi OGAWA. > > When we checked

Re: [PATCH v5 7/8] fat (exportfs): rebuild directory-inode if fat_dget() fails

2012-12-21 Thread OGAWA Hirofumi
Namjae Jeon linkinj...@gmail.com writes: Hm, start with copy of fat_search_long() and refactoring it. With it, we will be able to avoid the fixed bugs. After that, we might be able to merge those somehow. Well, I'm not pretty sure without doing it actually though. Hi OGAWA. When we

Re: [PATCH v5 7/8] fat (exportfs): rebuild directory-inode if fat_dget() fails

2012-12-21 Thread OGAWA Hirofumi
Namjae Jeon linkinj...@gmail.com writes: Yes, we can't use fat_search_long() as is, of course. However, we can share the basic algorithm and code. The both are doing, 1) traverse the blocks chained by -i_start. 2) get the record (dirent) from blocks. 3) check the detail of record The

Re: [PATCH v5 7/8] fat (exportfs): rebuild directory-inode if fat_dget() fails

2012-12-21 Thread OGAWA Hirofumi
OGAWA Hirofumi hirof...@mail.parknet.co.jp writes: Namjae Jeon linkinj...@gmail.com writes: Yes, we can't use fat_search_long() as is, of course. However, we can share the basic algorithm and code. The both are doing, 1) traverse the blocks chained by -i_start. 2) get the record (dirent)

Re: [PATCH v5 7/8] fat (exportfs): rebuild directory-inode if fat_dget() fails

2012-12-21 Thread Namjae Jeon
2012/12/21, OGAWA Hirofumi hirof...@mail.parknet.co.jp: Namjae Jeon linkinj...@gmail.com writes: Hm, start with copy of fat_search_long() and refactoring it. With it, we will be able to avoid the fixed bugs. After that, we might be able to merge those somehow. Well, I'm not pretty sure

Re: [PATCH v5 7/8] fat (exportfs): rebuild directory-inode if fat_dget() fails

2012-12-20 Thread Namjae Jeon
2012/12/20, OGAWA Hirofumi : > Namjae Jeon writes: > >>> Okay, We will check how we can consolidate the 2 paths to avoid any >>> issue. >> Hi OGAWA. >> >> On checking fat_search_long() logic, it is observed that it performs >> name based lookup of the entries in a given directory. >> In

Re: [PATCH v5 7/8] fat (exportfs): rebuild directory-inode if fat_dget() fails

2012-12-20 Thread Namjae Jeon
2012/12/21, Namjae Jeon : > 2012/12/20, OGAWA Hirofumi : >> Namjae Jeon writes: >> Okay, We will check how we can consolidate the 2 paths to avoid any issue. >>> Hi OGAWA. >>> >>> On checking fat_search_long() logic, it is observed that it performs >>> name based lookup of the entries

Re: [PATCH v5 7/8] fat (exportfs): rebuild directory-inode if fat_dget() fails

2012-12-20 Thread Namjae Jeon
2012/12/21, Namjae Jeon linkinj...@gmail.com: 2012/12/20, OGAWA Hirofumi hirof...@mail.parknet.co.jp: Namjae Jeon linkinj...@gmail.com writes: Okay, We will check how we can consolidate the 2 paths to avoid any issue. Hi OGAWA. On checking fat_search_long() logic, it is observed that it

Re: [PATCH v5 7/8] fat (exportfs): rebuild directory-inode if fat_dget() fails

2012-12-20 Thread Namjae Jeon
2012/12/20, OGAWA Hirofumi hirof...@mail.parknet.co.jp: Namjae Jeon linkinj...@gmail.com writes: Okay, We will check how we can consolidate the 2 paths to avoid any issue. Hi OGAWA. On checking fat_search_long() logic, it is observed that it performs name based lookup of the entries in a

Re: [PATCH v5 7/8] fat (exportfs): rebuild directory-inode if fat_dget() fails

2012-12-19 Thread OGAWA Hirofumi
Namjae Jeon writes: >> Okay, We will check how we can consolidate the 2 paths to avoid any issue. > Hi OGAWA. > > On checking fat_search_long() logic, it is observed that it performs > name based lookup of the entries in a given directory. > In fat_get_parent(), we do not have such information

Re: [PATCH v5 7/8] fat (exportfs): rebuild directory-inode if fat_dget() fails

2012-12-19 Thread OGAWA Hirofumi
Namjae Jeon linkinj...@gmail.com writes: Okay, We will check how we can consolidate the 2 paths to avoid any issue. Hi OGAWA. On checking fat_search_long() logic, it is observed that it performs name based lookup of the entries in a given directory. In fat_get_parent(), we do not have such

Re: [PATCH v5 7/8] fat (exportfs): rebuild directory-inode if fat_dget() fails

2012-12-15 Thread Namjae Jeon
2012/12/5, Namjae Jeon : > 2012/12/5, OGAWA Hirofumi : >> Namjae Jeon writes: >> >> This became much better than before. However, we have to consolidate >> the >> code with fat_search_long() finally. >> >> E.g. this version is having the issue already fixed. If there is >>

Re: [PATCH v5 7/8] fat (exportfs): rebuild directory-inode if fat_dget() fails

2012-12-15 Thread Namjae Jeon
2012/12/5, Namjae Jeon linkinj...@gmail.com: 2012/12/5, OGAWA Hirofumi hirof...@mail.parknet.co.jp: Namjae Jeon linkinj...@gmail.com writes: This became much better than before. However, we have to consolidate the code with fat_search_long() finally. E.g. this version is having the issue

Re: [PATCH v5 7/8] fat (exportfs): rebuild directory-inode if fat_dget() fails

2012-12-05 Thread Namjae Jeon
2012/12/5, OGAWA Hirofumi : > Namjae Jeon writes: > > This became much better than before. However, we have to consolidate > the > code with fat_search_long() finally. > > E.g. this version is having the issue already fixed. If there is > corruption in fat cluster-chain,

Re: [PATCH v5 7/8] fat (exportfs): rebuild directory-inode if fat_dget() fails

2012-12-05 Thread OGAWA Hirofumi
Namjae Jeon writes: This became much better than before. However, we have to consolidate the code with fat_search_long() finally. E.g. this version is having the issue already fixed. If there is corruption in fat cluster-chain, it lead to infinite loop.

Re: [PATCH v5 7/8] fat (exportfs): rebuild directory-inode if fat_dget() fails

2012-12-05 Thread OGAWA Hirofumi
Namjae Jeon linkinj...@gmail.com writes: This became much better than before. However, we have to consolidate the code with fat_search_long() finally. E.g. this version is having the issue already fixed. If there is corruption in fat cluster-chain, it lead to infinite loop.

Re: [PATCH v5 7/8] fat (exportfs): rebuild directory-inode if fat_dget() fails

2012-12-05 Thread Namjae Jeon
2012/12/5, OGAWA Hirofumi hirof...@mail.parknet.co.jp: Namjae Jeon linkinj...@gmail.com writes: This became much better than before. However, we have to consolidate the code with fat_search_long() finally. E.g. this version is having the issue already fixed. If there is corruption in fat

Re: [PATCH v5 7/8] fat (exportfs): rebuild directory-inode if fat_dget() fails

2012-12-04 Thread Namjae Jeon
2012/12/4, OGAWA Hirofumi : > Namjae Jeon writes: > >> 2012/12/3, OGAWA Hirofumi : >>> Namjae Jeon writes: >>> From: Namjae Jeon This patch enables rebuilding of directory inodes which are not present in the cache.This is done by traversing the disk clusters to find the

Re: [PATCH v5 7/8] fat (exportfs): rebuild directory-inode if fat_dget() fails

2012-12-04 Thread OGAWA Hirofumi
Namjae Jeon writes: > 2012/12/3, OGAWA Hirofumi : >> Namjae Jeon writes: >> >>> From: Namjae Jeon >>> >>> This patch enables rebuilding of directory inodes which are not present >>> in the cache.This is done by traversing the disk clusters to find the >>> directory entry of the parent

Re: [PATCH v5 7/8] fat (exportfs): rebuild directory-inode if fat_dget() fails

2012-12-04 Thread OGAWA Hirofumi
Namjae Jeon linkinj...@gmail.com writes: 2012/12/3, OGAWA Hirofumi hirof...@mail.parknet.co.jp: Namjae Jeon linkinj...@gmail.com writes: From: Namjae Jeon namjae.j...@samsung.com This patch enables rebuilding of directory inodes which are not present in the cache.This is done by traversing

Re: [PATCH v5 7/8] fat (exportfs): rebuild directory-inode if fat_dget() fails

2012-12-04 Thread Namjae Jeon
2012/12/4, OGAWA Hirofumi hirof...@mail.parknet.co.jp: Namjae Jeon linkinj...@gmail.com writes: 2012/12/3, OGAWA Hirofumi hirof...@mail.parknet.co.jp: Namjae Jeon linkinj...@gmail.com writes: From: Namjae Jeon namjae.j...@samsung.com This patch enables rebuilding of directory inodes which

Re: [PATCH v5 7/8] fat (exportfs): rebuild directory-inode if fat_dget() fails

2012-12-03 Thread Namjae Jeon
2012/12/3, OGAWA Hirofumi : > Namjae Jeon writes: > >> From: Namjae Jeon >> >> This patch enables rebuilding of directory inodes which are not present >> in the cache.This is done by traversing the disk clusters to find the >> directory entry of the parent directory and using its i_pos to build

Re: [PATCH v5 7/8] fat (exportfs): rebuild directory-inode if fat_dget() fails

2012-12-03 Thread OGAWA Hirofumi
Namjae Jeon writes: > From: Namjae Jeon > > This patch enables rebuilding of directory inodes which are not present > in the cache.This is done by traversing the disk clusters to find the > directory entry of the parent directory and using its i_pos to build the > inode. > Do this only if the

Re: [PATCH v5 7/8] fat (exportfs): rebuild directory-inode if fat_dget() fails

2012-12-03 Thread OGAWA Hirofumi
Namjae Jeon linkinj...@gmail.com writes: From: Namjae Jeon namjae.j...@samsung.com This patch enables rebuilding of directory inodes which are not present in the cache.This is done by traversing the disk clusters to find the directory entry of the parent directory and using its i_pos to

Re: [PATCH v5 7/8] fat (exportfs): rebuild directory-inode if fat_dget() fails

2012-12-03 Thread Namjae Jeon
2012/12/3, OGAWA Hirofumi hirof...@mail.parknet.co.jp: Namjae Jeon linkinj...@gmail.com writes: From: Namjae Jeon namjae.j...@samsung.com This patch enables rebuilding of directory inodes which are not present in the cache.This is done by traversing the disk clusters to find the directory