bug fix: retry lookup for different silly-renamed files
authorErez Zadok <ezk@bigvaio.(none)>
Fri, 18 May 2007 05:45:18 +0000 (01:45 -0400)
committerErez Zadok <ezk@cs.sunysb.edu>
Tue, 11 Nov 2014 01:39:18 +0000 (20:39 -0500)
commitbe57d70fb1a85d4db033f3a09aba73249ff1d9ca
tree0b80ed829e36d791dfd1cc089d8286656af9ae58
parent5ee2fbd535e2b2766ae04cbaa327eb25942f356a
bug fix: retry lookup for different silly-renamed files

When we have to copyup an open-but-unlinked file, we have to give it a
temporary name, similar to NFS's silly-renamed files.  So we generate
temporary file names until we find one that doesn't exist, and use it.  The
code had a bug where if the silly-renamed file name already existed, Unionfs
would oops upon copyup to that temp name.
fs/unionfs/commonfops.c