OpenAFS Master Repository branch, master, updated. openafs-devel-1_5_76-2292-g3d02437
Gerrit Code Review
Fri, 6 Apr 2012 06:18:07 -0700 (PDT)
The following commit has been merged in the master branch:
Author: Jeffrey Altman <email@example.com>
Date: Thu Apr 5 23:14:18 2012 -0400
Windows: Check Avail Space on extending SetEndOfFile
When cm_SetLength() is called with an extending file length,
check the available free space in the volume to see if the
new length will fit. If not, return CM_ERROR_SPACE.
This permits applications to discover that there is insufficient
space prior to writing all of the data into the windows page
cache at which point it will be too late.
There is still the possibility of a race that can result in
data loss if two applications are writing into the same volume
at the same time and there is insufficient room.
Tested-by: Jeffrey Altman <firstname.lastname@example.org>
Reviewed-by: Jeffrey Altman <email@example.com>
src/WINNT/afsd/cm_vnodeops.c | 78 ++++++++++++++++++++++++++++++++++++++++-
src/WINNT/afsd/cm_vnodeops.h | 2 +
2 files changed, 78 insertions(+), 2 deletions(-)
OpenAFS Master Repository