Unionfs: ensure consistent lower inodes types
authorRachita Kothiyal <rachita@dewey.fsl.cs.sunysb.edu>
Mon, 31 Mar 2008 19:46:51 +0000 (15:46 -0400)
committerRachita Kothiyal <rachita@dewey.fsl.cs.sunysb.edu>
Mon, 31 Mar 2008 19:46:51 +0000 (15:46 -0400)
commitcda7f6e2cb32f594f35afd34a7cadc186896c6fc
tree3c63fc25de19135364377fb4a8111a3beffde33f
parentc1e6ee153ca6829da6e83d5a48056da840fe8ed6
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