Unionfs: create new special files only in first branch
authorErez Zadok <ezk@cs.sunysb.edu>
Tue, 25 Dec 2007 22:01:40 +0000 (17:01 -0500)
committerErez Zadok <ezk@cs.sunysb.edu>
Tue, 25 Dec 2007 22:01:40 +0000 (17:01 -0500)
commit813cf83bf851b9506d8bbdc510b08dbd3669916b
tree0eed64257b54cb06da676f6ce416da0468bb3ea3
parent3902ee39c3a3ebf11a87b547eafe341cc0dc3fcf
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