Unionfs: remove whiteout of opened but unlinked file from readonly branch
authorErez Zadok <ezk@cs.sunysb.edu>
Sat, 23 Apr 2011 02:01:11 +0000 (22:01 -0400)
committerErez Zadok <ezk@cs.sunysb.edu>
Thu, 16 Jun 2011 22:48:42 +0000 (15:48 -0700)
commite2ee86cec1e77aa7961fe2165a5fc2842e709f3d
treeb0eba4e591dbe4407c6c7ce2d57948da24c64477
parent2c8948b74281e9f26c46d6e76f4d6bdb71d40afd
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