Unionfs: remove whiteout of opened but unlinked file from readonly branch
authorErez Zadok <ezk@cs.sunysb.edu>
Wed, 30 Mar 2011 23:23:53 +0000 (19:23 -0400)
committerErez Zadok <ezk@cs.sunysb.edu>
Wed, 30 Mar 2011 23:23:53 +0000 (19:23 -0400)
commit710377c440a5b055c6ce3401466ce83ade8be950
tree1e1ad901987220d473902905dd00f0365dafe65d
parentcc8961e73cde283d1eb568de7a20dacbd93f81be
Unionfs: remove whiteout of opened but unlinked file from readonly branch

If we unlink an opened file in a readonly branch, then we create a whiteout.
But then if if ftruncate it, we copyup a zero-length file.  So we have to
delete the whiteout.

Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/unionfs/inode.c