OpenAFS Master Repository branch, master, updated. openafs-devel-1_5_76-2292-g3d02437
Gerrit Code Review
gerrit@openafs.org
Fri, 6 Apr 2012 06:18:07 -0700 (PDT)
The following commit has been merged in the master branch:
commit 3d024372293a279cf3a6cbdfe75a384ec7c8b200
Author: Jeffrey Altman <jaltman@your-file-system.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.
Change-Id: Ieef2c48f5b6edc8d101b6527af3a3f87fe55f6ca
Reviewed-on: http://gerrit.openafs.org/7057
Tested-by: Jeffrey Altman <jaltman@secure-endpoints.com>
Reviewed-by: Jeffrey Altman <jaltman@secure-endpoints.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