Unionfs: ensure consistent lower inodes types
authorErez Zadok <ezk@cs.sunysb.edu>
Sat, 16 Feb 2008 02:38:30 +0000 (21:38 -0500)
committerErez Zadok <ezk@cs.sunysb.edu>
Sat, 16 Feb 2008 02:38:30 +0000 (21:38 -0500)
commit56bfee34e6c0b20c5dabe772adff22516309543a
tree449b27cb022a4479a5d925c897f71fc638955f2d
parentcfb0cd33f033ce4395a5ed24b3c701a467774bc7
Unionfs: ensure consistent lower inodes types

When looking up a lower object in multiple branches, especially for
directories, ignore any existing entries whose type is different than the
type of the first found object (otherwise we'll be trying to, say, call
readdir on a non-dir inode).

Signed-off-by: Himanshu Kanda <hkanda@fsl.cs.sunysb.edu>
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/unionfs/lookup.c