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