OpenAFS Master Repository branch, master, updated. openafs-devel-1_5_68-102-gf5cfa4c
Gerrit Code Review
Sat, 16 Jan 2010 07:01:00 -0800 (PST)
The following commit has been merged in the master branch:
Author: Simon Wilkinson <email@example.com>
Date: Sat Jan 16 02:09:34 2010 +0000
Unix CM: Fix negative file length case, again
As originally noted in f6f9ee5402f1718f330a00ec89fb34b05c3cd360
some fileservers return a negative length, typically when a client
is attempting to fetch data that is past the extents of the file,
the CM needs to retain this negative length, and handle it correctly.
c7b92a3018044f7aca4d9a77644e5c06ef64d1e9 added safety checks for
the fileserver returning a length larger than that asked for by
the client. Sadly, this check does a comparison between a
signed, and an unsigned, variable. This leads to it incorrectly
classifying negative responses as being too large.
Add a cast, and a comment, to fix this.
Reviewed-by: Jeffrey Altman <firstname.lastname@example.org>
Reviewed-by: Derrick Brashear <email@example.com>
Tested-by: Derrick Brashear <firstname.lastname@example.org>
src/afs/afs_fetchstore.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
OpenAFS Master Repository