[LinuxPPS] 21 Oct 20:35 - [PATCH] VFS: Make d_materialise_unique() enforce directory uniqueness

linuxpps, Trond Myklebust <> webmaster at enneenne.com
Tue Oct 24 11:11:08 CEST 2006


[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   
  
Cc: Miklos Szeredi   
  
Cc: Maneesh Soni   
  
Cc: Dipankar Sarma   
  
Cc: Neil Brown   
  
Cc: Al Viro   
  
Cc: Christoph Hellwig   
  
Signed-off-by: Andrew Morton   
  
Signed-off-by: Linus Torvalds   
  
  
fs/dcache.c  
fs/nfs/dir.c

URL: http://gitweb.enneenne.com/?p=linuxpps;a=commit;h=9eaef27b36a6b716384948da94b8fc5bfba7b712



More information about the LinuxPPS mailing list