Unionfs: create new symlinks only in first branch
authorErez Zadok <ezk@cs.sunysb.edu>
Tue, 25 Dec 2007 22:02:52 +0000 (17:02 -0500)
committerErez Zadok <ezk@cs.sunysb.edu>
Tue, 25 Dec 2007 22:02:52 +0000 (17:02 -0500)
commita7929b39b97d7b0a306a8516e47001e0161c99e3
treecb551edfe2830f6ed2253fb7846994295c89c48e
parenta3eb3330075428d8081eb859bce875c717d43313
Unionfs: create new symlinks only in first branch

When creating a new symlink, 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 symlinks 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