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, 13 Jan 2009 01:43:29 +0000 (20:43 -0500)
commit7d78f3d4083e5c3b8aaa4bf598a38104693274ba
treee991bd3b1f2d3f58bfcbb1df667ee92dff0105e2
parent8f12198ac26ba91498bac49216e22be14e3e66c6
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