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>
Sun, 23 Feb 2014 19:07:09 +0000 (14:07 -0500)
commit827fdae2b535ff6be29e468af53bf0114cb017a4
tree49fd4863d2e0af0b9bdd6f477d7491fde10affd5
parent759c5251fe4b323207276ce663b94452a2523c4b
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