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>
Sat, 30 Nov 2013 23:13:18 +0000 (18:13 -0500)
commitc921a52619b14ce3113a1f97bd2352d7d06345f7
tree02fa595ff3cbae3964bc39669933e1500365dbaa
parent91430f23e40b768faf303160bfd74225b8634319
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