mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 15:30:14 +00:00
Windows: Reset mp/symlink target during fs flush*
When processing a "fs flush*" command, reset the the cm_scache_t mountPointStringp which contains the known mountpoint or symlink target information. Change-Id: I72bba6101699e82649eed226cdfc73077b13de92 Reviewed-on: http://gerrit.openafs.org/10520 Tested-by: BuildBot <buildbot@rampaginggeek.com> Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
This commit is contained in:
parent
5b67620c7b
commit
0e851b7fcb
@ -124,6 +124,11 @@ cm_FlushFile(cm_scache_t *scp, cm_user_t *userp, cm_req_t *reqp)
|
|||||||
lock_ObtainWrite(&scp->dirlock);
|
lock_ObtainWrite(&scp->dirlock);
|
||||||
lock_ObtainWrite(&scp->rw);
|
lock_ObtainWrite(&scp->rw);
|
||||||
cm_DiscardSCache(scp);
|
cm_DiscardSCache(scp);
|
||||||
|
if (scp->fileType == CM_SCACHETYPE_MOUNTPOINT ||
|
||||||
|
scp->fileType == CM_SCACHETYPE_SYMLINK) {
|
||||||
|
scp->mpDataVersion = CM_SCACHE_VERSION_BAD;
|
||||||
|
scp->mountPointStringp[0] = '\0';
|
||||||
|
}
|
||||||
if (scp->fileType == CM_SCACHETYPE_DIRECTORY) {
|
if (scp->fileType == CM_SCACHETYPE_DIRECTORY) {
|
||||||
cm_ResetSCacheDirectory(scp, 1);
|
cm_ResetSCacheDirectory(scp, 1);
|
||||||
lock_ReleaseWrite(&scp->dirlock);
|
lock_ReleaseWrite(&scp->dirlock);
|
||||||
|
Loading…
Reference in New Issue
Block a user