diff options
author | OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> | 2008-10-15 18:50:29 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2008-10-23 05:13:20 -0400 |
commit | 4e9ed2f85af7adfa7c3f0efa839a53186254fdcb (patch) | |
tree | d59efd278d8d8474d9869211ba4424143ea84b75 /fs/namei.c | |
parent | 0612d9fb270a474fe6a46cc5b8d3f5b71cf5f580 (diff) |
[PATCH vfs-2.6 6/6] vfs: add LOOKUP_RENAME_TARGET intent
This adds LOOKUP_RENAME_TARGET intent for lookup of rename destination.
LOOKUP_RENAME_TARGET is going to be used like LOOKUP_CREATE. But since
the destination of rename() can be existing directory entry, so it has a
difference. Although that difference doesn't matter in my usage, this
tells it to user of this intent.
Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Diffstat (limited to 'fs/namei.c')
-rw-r--r-- | fs/namei.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/namei.c b/fs/namei.c index 18894fdf048a..9e2a534383d9 100644 --- a/fs/namei.c +++ b/fs/namei.c | |||
@@ -2654,6 +2654,7 @@ asmlinkage long sys_renameat(int olddfd, const char __user *oldname, | |||
2654 | 2654 | ||
2655 | oldnd.flags &= ~LOOKUP_PARENT; | 2655 | oldnd.flags &= ~LOOKUP_PARENT; |
2656 | newnd.flags &= ~LOOKUP_PARENT; | 2656 | newnd.flags &= ~LOOKUP_PARENT; |
2657 | newnd.flags |= LOOKUP_RENAME_TARGET; | ||
2657 | 2658 | ||
2658 | trap = lock_rename(new_dir, old_dir); | 2659 | trap = lock_rename(new_dir, old_dir); |
2659 | 2660 | ||