fat: drop negative dentry on rename() path

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Wednesday, December 31, 2008 - 5:59 pm

Gitweb:     http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=ebeb04...
Commit:     ebeb0406f153db51ab2d4771faf2342bd6ca14dd
Parent:     f21f237cf55494c3a4209de323281a3b0528da10
Author:     OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
AuthorDate: Wed Nov 12 07:48:00 2008 +0900
Committer:  OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
CommitDate: Wed Nov 12 08:51:22 2008 +0900

    fat: drop negative dentry on rename() path
    
    Drop the negative dentry on rename() path, in order to make sure to
    use the case sensitive name which is specified by user if this is for
    creation.
    
    For it, this uses newly added LOOKUP_RENAME_TARGET like LOOKUP_CREATE.
    
    Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
---
 fs/fat/namei_vfat.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/fat/namei_vfat.c b/fs/fat/namei_vfat.c
index bf326d4..8ae32e3 100644
--- a/fs/fat/namei_vfat.c
+++ b/fs/fat/namei_vfat.c
@@ -78,7 +78,7 @@ static int vfat_revalidate_ci(struct dentry *dentry, struct nameidata *nd)
 	 * for creation.
 	 */
 	if (!(nd->flags & (LOOKUP_CONTINUE | LOOKUP_PARENT))) {
-		if (nd->flags & LOOKUP_CREATE)
+		if (nd->flags & (LOOKUP_CREATE | LOOKUP_RENAME_TARGET))
 			return 0;
 	}
 
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
fat: drop negative dentry on rename() path, Linux Kernel Mailing ..., (Wed Dec 31, 5:59 pm)