Trond Myklebust 9eaef27b36 [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>
2006-10-21 13:35:06 -07:00
..
2006-10-11 11:14:23 -07:00
2006-10-10 16:15:33 -07:00
2006-10-15 11:00:58 -07:00
2006-10-03 23:28:36 +02:00
2006-10-20 09:13:10 -04:00
2006-10-11 11:14:21 -07:00
2006-10-11 11:14:21 -07:00
2006-10-11 11:14:19 -07:00
2006-10-10 16:15:34 -07:00
2006-10-11 11:14:23 -07:00
2006-10-02 09:55:27 -05:00
2006-10-11 11:14:23 -07:00
2006-10-20 10:26:43 -07:00
2006-10-03 23:01:26 +02:00
2006-10-11 11:14:23 -07:00
2006-10-05 16:18:55 -07:00
2006-10-10 16:15:34 -07:00
2006-01-11 18:42:13 -08:00
2006-10-04 06:51:26 -06:00
2006-10-11 11:14:25 -07:00
2006-01-08 20:12:40 -08:00
2006-10-11 11:14:21 -07:00
2006-10-02 07:57:15 -07:00
2006-04-11 13:53:33 +02:00
2006-10-01 00:39:33 -07:00
2006-06-26 09:58:17 -07:00
2005-11-07 18:18:11 -08:00
2006-10-01 00:39:19 -07:00
2006-03-23 07:38:11 -08:00
2006-10-01 00:39:29 -07:00
2006-03-23 07:38:12 -08:00
2006-10-01 00:39:19 -07:00
2006-10-09 14:20:38 -07:00