Windows: Force rebuilding Freelance directory in AddMount and AddSymlink
authorJeffrey Altman <jaltman@your-file-system.com>
Sun, 2 May 2010 18:48:00 +0000 (14:48 -0400)
committerJeffrey Altman <jaltman@openafs.org>
Sun, 2 May 2010 19:12:49 +0000 (12:12 -0700)
commitda2db6234221494956eca71ed3693c0a2bbf4a67
tree719301fae8bb3c8cde87b2d2de5f9ec48325fa8e
parentf8efae8c7072593ae519539790838055783affff
Windows: Force rebuilding Freelance directory in AddMount and AddSymlink

cm_FreelanceAddMount and cm_FreelanceAddSymlink is supposed to
return the allocated FID of the entry that was added.  However,
cm_NameI is called to perform the lookup without forcing an update
of the Freelance fake directory.  As a result the entry may not be
found.

Force an update prior to calling cm_NameI() by using
cm_clearLocalMountPointChange() and cm_reInitLocalMountPoints()
if required.

LICENSE MIT

Change-Id: I08147b2ec61c810fdc718964362315af67d485b8
Reviewed-on: http://gerrit.openafs.org/1890
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Tested-by: Jeffrey Altman <jaltman@openafs.org>
src/WINNT/afsd/cm_freelance.c