]> git.michaelhowe.org Git - packages/o/openafs.git/commit
Windows: Treat all cached writes as write-through
authorJeffrey Altman <jaltman@your-file-system.com>
Wed, 2 May 2012 22:05:26 +0000 (18:05 -0400)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Fri, 4 May 2012 17:27:07 +0000 (10:27 -0700)
commitb12a038b487a47e99700c0d51273aee37aecbfca
tree510c216f09ca1f34936bf1f63fe98553f58b3f1d
parent0fb70aab0e06099bbfe9b1fa388722d0b28f81a3
Windows: Treat all cached writes as write-through

Treat all writes that are cached in the windows page cache as
write-through requests so that they are delivered immediately to
the AFS cache.

The upside is that the afsd service can begin to store data to the
file server immediately which can be of significant importance whe
the AFSCache is larger than the file size and the file size is large
and the bandwidth to the file server is slow.  In that situation
the entire file can be written into the windows page cache and
will only be flushed to disk at the last handle close on the file.

The downside is that all data will be written to the file server
including that for files that will later have the delete pending
flag applied.

Change-Id: Icff536f9ec768068692c1e024a943448409e7e40
Reviewed-on: http://gerrit.openafs.org/7319
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Tested-by: Jeffrey Altman <jaltman@secure-endpoints.com>
Reviewed-by: Jeffrey Altman <jaltman@secure-endpoints.com>
src/WINNT/afsrdr/kernel/lib/AFSWrite.cpp