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>
Sun, 1 Dec 2013 00:53:56 +0000 (19:53 -0500)
commitc624df3b644b5de621af3ce54742cee33fae473b
tree968106b29fcdd999cc2620bb23c0ffb208284be6
parent86650eecea218814b6c4a63172df5292b2bdcbd8
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