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, 23 Nov 2013 01:09:10 +0000 (20:09 -0500)
commiteabaf83722def64e961662329b61594ef2ead310
tree7b6d89ed5e28e2a48093763fdf0167d9f09c31f1
parent8094291d953e691b444007b6cda6ad8f05d5b863
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