Unionfs: remove whiteout of opened but unlinked file from readonly branch
authorErez Zadok <ezk@cs.sunysb.edu>
Tue, 6 Sep 2011 04:02:27 +0000 (00:02 -0400)
committerErez Zadok <ezk@cs.sunysb.edu>
Fri, 20 Jun 2014 00:42:14 +0000 (20:42 -0400)
commit2b865e2b116c21151592a8fc61e9b77e31d21ee1
tree4d28edc2d6c7e05fe52cdb0091d80254d6c50750
parent056b734cd3aba45b802c560750d94ccc7364a861
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