diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-10-21 19:24:20 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-21 22:35:06 +0200 |
commit | 9eaef27b36a6b716384948da94b8fc5bfba7b712 (patch) | |
tree | ab69cf9c3863bb7ca564574c914e5b6bf8ad3162 /fs/nfs/nfs4namespace.c | |
parent | [PATCH] cciss: Fix warnings (and bug on 1TB discs) (diff) | |
download | linux-9eaef27b36a6b716384948da94b8fc5bfba7b712.tar.xz linux-9eaef27b36a6b716384948da94b8fc5bfba7b712.zip |
[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 <Trond.Myklebust@netapp.com>
Cc: Miklos Szeredi <miklos@szeredi.hu>
Cc: Maneesh Soni <maneesh@in.ibm.com>
Cc: Dipankar Sarma <dipankar@in.ibm.com>
Cc: Neil Brown <neilb@cse.unsw.edu.au>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions