OpenAFS Master Repository branch, master, updated. openafs-devel-1_5_64-41-g45e98a4
Gerrit Code Review
Mon, 28 Sep 2009 10:30:48 -0700 (PDT)
The following commit has been merged in the master branch:
Author: Jeffrey Altman <firstname.lastname@example.org>
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.
Reviewed-by: Derrick Brashear <email@example.com>
Tested-by: Jeffrey Altman <firstname.lastname@example.org>
Reviewed-by: Jeffrey Altman <email@example.com>
src/WINNT/afsd/cm_dcache.c | 126 +++++++++++++++++++++++++++++++++++++++-----
1 files changed, 113 insertions(+), 13 deletions(-)
OpenAFS Master Repository