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, 27 Apr 2014 02:28:00 +0000 (22:28 -0400)
commit14ded6f11dba66bafdafb98bb8b7d7f4820fab97
treea954fa9ea48ab10de4fe0e3cb2ee6c82853a2d10
parent1606d666962d34da4eb4a7feba20551336fcaaac
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