From: Jeffrey Altman Date: Sat, 15 Dec 2012 17:18:52 +0000 (-0500) Subject: Windows: Set Symlink mpDV after reading target string X-Git-Tag: upstream/1.8.0_pre1^2~1718 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=0d9ffd712af25c1ca2bc92c428a599c495bc08dd;p=packages%2Fo%2Fopenafs.git Windows: Set Symlink mpDV after reading target string When a cm_scache object, symlink, has its mountPointString field successfully populated by cm_GetData(), the mpDV field must be assigned the current dataVersion value in order to prevent unnecessary queries of the mountPointString from the file server. Change-Id: I62b2341459c680d531fd9f4de64dfcc87801ec3e Reviewed-on: http://gerrit.openafs.org/8762 Tested-by: BuildBot Reviewed-by: Jeffrey Altman Tested-by: Jeffrey Altman --- diff --git a/src/WINNT/afsd/cm_vnodeops.c b/src/WINNT/afsd/cm_vnodeops.c index 971727189..48b9a5b5f 100644 --- a/src/WINNT/afsd/cm_vnodeops.c +++ b/src/WINNT/afsd/cm_vnodeops.c @@ -1809,6 +1809,7 @@ long cm_HandleLink(cm_scache_t *linkScp, cm_user_t *userp, cm_req_t *reqp) /* make sure we are NUL terminated */ temp[linkScp->length.LowPart] = 0; memcpy(linkScp->mountPointStringp, temp, linkScp->length.LowPart + 1); + linkScp->mpDataVersion = linkScp->dataVersion; } if ( !strnicmp(linkScp->mountPointStringp, "msdfs:", strlen("msdfs:")) )