OpenAFS Master Repository branch, master, updated. openafs-devel-1_5_64-41-g45e98a4
Gerrit Code Review
gerrit@openafs.org
Mon, 28 Sep 2009 10:30:48 -0700 (PDT)
The following commit has been merged in the master branch:
commit 45e98a4455e1da7e79b70a4c42dccb07ab9102a6
Author: Jeffrey Altman <jaltman@secure-endpoints.com>
Date: Mon Sep 28 16:22:31 2009 +0200
Windows: cm_GetBuffer does not need to contact file server when extended a file
If cm_GetBuffer is being called in order to obtain a buffer to store
data beyond the end of the existing file as known to the file server
there is no reason to contact the file server. Instead use the cached
status info in order to allocate a new buffer zero initialized.
This logic avoids triggering the FetchData bug in all file servers
older than 1.4.12 and 1.5.65 in which the file server returns a
large negative number (filesize - requested_offset) when a FetchData
is received where the requested_offset is larger than the filesize.
It also avoids unnecessary work.
LICENSE MIT
Reviewed-on: http://gerrit.openafs.org/542
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Jeffrey Altman <jaltman@openafs.org>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
src/WINNT/afsd/cm_dcache.c | 126 +++++++++++++++++++++++++++++++++++++++-----
1 files changed, 113 insertions(+), 13 deletions(-)
--
OpenAFS Master Repository