Fw: RE: [PATCH 2/3] exfat: remove useless check in exfat_move_file()

2020-10-14 Thread kohada.tetsuh...@dc.mitsubishielectric.co.jp
Thank you for continuing the discussion. The reply was delayed to summarize the arguing points. > I already gave my comment on previous thread, and I prefer de array handling > I sent instead of only two entries. We haven't discussed enough yet and I have some questions. I still don't understand

Re: [PATCH 2/3] exfat: remove useless check in exfat_move_file()

2020-09-30 Thread Tetsuhiro Kohada
BTW Are you busy now? I'm sorry, I'm so busy for my full time work :( Anyway, I'm trying to review serious bug patches or bug reports first. Other patches, such as clean-up or code refactoring, may take some time to review. I am waiting for your reply about "integrates dir-entry getting an

Re: [PATCH 2/3] exfat: remove useless check in exfat_move_file()

2020-09-30 Thread Tetsuhiro Kohada
Are you busy now? I'm sorry, I'm so busy for my full time work :( Anyway, I'm trying to review serious bug patches or bug reports first. Other patches, such as clean-up or code refactoring, may take some time to review. I'll try to reduce your burden as much as possible. I am waiting for you

Re: [PATCH 2/3] exfat: remove useless check in exfat_move_file()

2020-09-29 Thread Tetsuhiro Kohada
It might check if the cluster numbers are same between source entry and target directory. This checks if newdir is the move target itself. Example: mv /mnt/dir0 /mnt/dir0/foo However, this check is not enough. We need to check newdir and all ancestors. Example: mv /mnt/dir0 /mnt/dir0/di

RE: [PATCH 2/3] exfat: remove useless check in exfat_move_file()

2020-09-28 Thread Namjae Jeon
> > >> --- a/fs/exfat/namei.c > > >> +++ b/fs/exfat/namei.c > > >> @@ -1095,11 +1095,6 @@ static int exfat_move_file(struct inode > > >> *inode, struct exfat_chain *p_olddir, > > >> if (!epmov) > > >> return -EIO; > > >> > > >> -/* check if the source and target di

RE: [PATCH 2/3] exfat: remove useless check in exfat_move_file()

2020-09-28 Thread Sungjong Seo
> >> --- a/fs/exfat/namei.c > >> +++ b/fs/exfat/namei.c > >> @@ -1095,11 +1095,6 @@ static int exfat_move_file(struct inode > >> *inode, struct exfat_chain *p_olddir, > >>if (!epmov) > >>return -EIO; > >> > >> - /* check if the source and target directory is the same */ > >> - if

Re: [PATCH 2/3] exfat: remove useless check in exfat_move_file()

2020-09-16 Thread Tetsuhiro Kohada
--- a/fs/exfat/namei.c +++ b/fs/exfat/namei.c @@ -1095,11 +1095,6 @@ static int exfat_move_file(struct inode *inode, struct exfat_chain *p_olddir, if (!epmov) return -EIO; - /* check if the source and target directory is the same */ - if (exfat_get_entry_type(e

RE: [PATCH 2/3] exfat: remove useless check in exfat_move_file()

2020-09-15 Thread Sungjong Seo
> In exfat_move_file(), the identity of source and target directory has been > checked by the caller. > Also, it gets stream.start_clu from file dir-entry, which is an invalid > determination. > > Signed-off-by: Tetsuhiro Kohada > --- > fs/exfat/namei.c | 5 - > 1 file changed, 5 deletions(-