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>
Fri, 12 Aug 2011 02:39:38 +0000 (22:39 -0400)
commit702ee16ee250cdd428d060747347a424a15314ba
treea8a894d3413ff6a41e4466c28c8c10f472b4a37b
parent480eeec99b159f92d07f88571a0b31247fec7690
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