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>
Sun, 23 Feb 2014 19:05:16 +0000 (14:05 -0500)
commite71c55b8a7decfce5cce78268278fa59c8e2fdfe
tree9d0d6cf0d0f06b3dd6822e0bc34deb73623089fc
parent5816dea6e4b10d2709c8b9e57bc23952fa9a7ba8
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