OpenAFS Master Repository branch, master, updated. openafs-devel-1_5_76-2061-g52c3bac
Gerrit Code Review
Sat, 31 Dec 2011 13:45:21 -0800 (PST)
The following commit has been merged in the master branch:
Author: Jeffrey Altman <email@example.com>
Date: Fri Dec 30 20:09:06 2011 -0500
Windows: renames that overwrite existing target
The Windows client up to this point has never correctly implemented
directory renames. For the longest time it assumed that the file
server would not replace a pre-existing target. As a result, when
the target name was already in use the contents of the directory
would end up with the target name existing but its previous file id
associated with it.
A second problem was that lookups for the source and target names
were not performed while the directory (or directories) were exclusively
held to ensure that competing changes could not occur.
This patchset corrects both issues in cm_Rename() and adjusts the
redirector interface to match the new behavior.
Reviewed-by: Jeffrey Altman <firstname.lastname@example.org>
Tested-by: Jeffrey Altman <email@example.com>
src/WINNT/afsd/cm_vnodeops.c | 192 ++++++++++++++++++++---------------
src/WINNT/afsrdr/user/RDRFunction.c | 22 +++-
2 files changed, 126 insertions(+), 88 deletions(-)
OpenAFS Master Repository