diff options
author | Trond Myklebust <[email protected]> | 2006-10-21 10:24:20 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2006-10-21 13:35:06 -0700 |
commit | 9eaef27b36a6b716384948da94b8fc5bfba7b712 (patch) | |
tree | ab69cf9c3863bb7ca564574c914e5b6bf8ad3162 /fs/jbd/commit.c | |
parent | 3f7705eab6722ad1a346d748c4aad55755d6c241 (diff) |
[PATCH] VFS: Make d_materialise_unique() enforce directory uniqueness
If the caller tries to instantiate a directory using an inode that already
has a dentry alias, then we attempt to rename the existing dentry instead
of instantiating a new one. Fail with an ELOOP error if the rename would
affect one of our parent directories.
This behaviour is needed in order to avoid issues such as
http://bugzilla.kernel.org/show_bug.cgi?id=7178
Signed-off-by: Trond Myklebust <[email protected]>
Cc: Miklos Szeredi <[email protected]>
Cc: Maneesh Soni <[email protected]>
Cc: Dipankar Sarma <[email protected]>
Cc: Neil Brown <[email protected]>
Cc: Al Viro <[email protected]>
Cc: Christoph Hellwig <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'fs/jbd/commit.c')
0 files changed, 0 insertions, 0 deletions