Unionfs: remove whiteout of opened but unlinked file from readonly branch
authorErez Zadok <ezk@cs.sunysb.edu>
Tue, 6 Sep 2011 01:15:55 +0000 (21:15 -0400)
committerErez Zadok <ezk@cs.sunysb.edu>
Tue, 6 Sep 2011 01:15:55 +0000 (21:15 -0400)
commit0564a53019e3340c5b6f2878776e174e2afa09da
tree426c1b53151dfa2745da8e01df1f87c74b47c4c7
parent1c1fcbbc55d463231460edf302c001debca09ace
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