Unionfs: create new special files only in first branch
authorErez Zadok <ezk@cs.sunysb.edu>
Tue, 18 Dec 2007 23:56:55 +0000 (18:56 -0500)
committerErez Zadok <ezk@cs.sunysb.edu>
Wed, 30 Mar 2011 23:21:21 +0000 (19:21 -0400)
commit00a470827fcc9be24e115c9c40b20d487b931fc3
tree6b6081149e31ad689ebe59f2a76900ec6519ce6f
parent345b67854d8a9a486f141cc0585ba1b3a1f21c0c
Unionfs: create new special files only in first branch

When creating a new special file, always create it in the first branch,
which is always writeable, not in the branch which may have a whiteout in
it.  This makes the policy for the creation of new special files consistent
with that of new files/directories, as well as improves efficiency a bit.

Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/unionfs/inode.c