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>
Tue, 11 Nov 2014 02:37:45 +0000 (21:37 -0500)
commit4ab6596c45f73b2d6b31c1b8e4ab8a98a733a119
tree930b7825119ae9034f1da9cc253b9c312b466fc1
parent3fc63afaf4696aecbb87e0275f737469ed3960eb
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