Windows: AFSCachedWrite reset LastServerFlush when Forced
authorJeffrey Altman <jaltman@your-file-system.com>
Fri, 7 Dec 2012 04:24:44 +0000 (23:24 -0500)
committerJeffrey Altman <jaltman@your-file-system.com>
Fri, 7 Dec 2012 14:49:38 +0000 (06:49 -0800)
commit339723e78eafec71576f04ed83e2d4417f6919a4
treeec008d1ed1236e933ef193e4ebd10ffb2129ef15
parentdd0f4bcd06c2283bc4ebbd3b44ed0f0e47b73d03
Windows: AFSCachedWrite reset LastServerFlush when Forced

If the ForceFlush parameter to AFSCachedWrite is set to TRUE,
the Fcb->Specific.File.LastServerFlush value must be reset to
ensure that the AFSPrimaryVolumeWorkerThread will trigger an
extent flush on its next pass.  The LastServerFlush value will
not be reset by AFSNonCachedWrite() when called as a result of
a CcFlushCache() call as it appears to be PagingIo.

Change-Id: I72c368e05f30f04b13b2c6d098bdb1da578ac82c
Reviewed-on: http://gerrit.openafs.org/8717
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
Tested-by: Jeffrey Altman <jaltman@your-file-system.com>
src/WINNT/afsrdr/kernel/lib/AFSWrite.cpp