Unionfs: remove whiteout of opened but unlinked file from readonly branch
authorErez Zadok <ezk@cs.sunysb.edu>
Tue, 6 Sep 2011 04:10:40 +0000 (00:10 -0400)
committerErez Zadok <ezk@cs.sunysb.edu>
Tue, 31 Jan 2012 05:06:21 +0000 (00:06 -0500)
commitdd04a524c45bce8639ec1f0b2c9081faece4607e
tree3fa34635b648d494e7af823221244b458b08a148
parenteca402de98e8b51490bfa130a1a7f4515e331427
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