Unionfs: remove whiteout of opened but unlinked file from readonly branch
authorErez Zadok <ezk@cs.sunysb.edu>
Sat, 30 Apr 2011 05:33:55 +0000 (01:33 -0400)
committerErez Zadok <ezk@cs.sunysb.edu>
Tue, 11 Nov 2014 16:07:14 +0000 (11:07 -0500)
commit1c51df315fa1ce6a9c8deb07689677aba4e99db2
treea4c1d0f16c937830a22e3cda4850c2cc0508f02d
parente8b53dee0b34c926df918e48d360cd89741a6c15
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