diff options
author | OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> | 2008-10-16 07:50:29 +0900 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2008-10-23 05:13:20 -0400 |
commit | 4e9ed2f85af7adfa7c3f0efa839a53186254fdcb (patch) | |
tree | d59efd278d8d8474d9869211ba4424143ea84b75 /include/linux/namei.h | |
parent | 0612d9fb270a474fe6a46cc5b8d3f5b71cf5f580 (diff) | |
download | kernel-crypto-4e9ed2f85af7adfa7c3f0efa839a53186254fdcb.tar.gz kernel-crypto-4e9ed2f85af7adfa7c3f0efa839a53186254fdcb.tar.xz kernel-crypto-4e9ed2f85af7adfa7c3f0efa839a53186254fdcb.zip |
[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 'include/linux/namei.h')
-rw-r--r-- | include/linux/namei.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/namei.h b/include/linux/namei.h index 6b5627afd2e..99eb80306dc 100644 --- a/include/linux/namei.h +++ b/include/linux/namei.h @@ -54,6 +54,7 @@ enum {LAST_NORM, LAST_ROOT, LAST_DOT, LAST_DOTDOT, LAST_BIND}; #define LOOKUP_OPEN 0x0100 #define LOOKUP_CREATE 0x0200 #define LOOKUP_EXCL 0x0400 +#define LOOKUP_RENAME_TARGET 0x0800 extern int user_path_at(int, const char __user *, unsigned, struct path *); |