From: Jeffrey Altman Date: Tue, 29 Jul 2008 03:54:34 +0000 (+0000) Subject: windows-buf-overquota-20080728 X-Git-Tag: openafs-devel-1_5_61~933 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=8cce5d2a61227da8623dcd08b11d997c66815cf1;p=packages%2Fo%2Fopenafs.git windows-buf-overquota-20080728 LICENSE MIT propagate overquota errors through buf_Write() and cm_FSync(). --- diff --git a/src/WINNT/afsd/cm_buf.c b/src/WINNT/afsd/cm_buf.c index e5a8a3c43..861a1bf8d 100644 --- a/src/WINNT/afsd/cm_buf.c +++ b/src/WINNT/afsd/cm_buf.c @@ -676,7 +676,9 @@ long buf_CleanAsyncLocked(cm_buf_t *bp, cm_req_t *reqp) * because we aren't going to be able to write this data to the file * server. */ - if (code == CM_ERROR_NOSUCHFILE || code == CM_ERROR_BADFD || code == CM_ERROR_NOACCESS){ + if (code == CM_ERROR_NOSUCHFILE || code == CM_ERROR_BADFD || code == CM_ERROR_NOACCESS || + code == CM_ERROR_QUOTA || code == CM_ERROR_SPACE || code == CM_ERROR_TOOBIG || + code == CM_ERROR_READONLY || code == CM_ERROR_NOSUCHPATH){ bp->flags &= ~CM_BUF_DIRTY; bp->flags |= CM_BUF_ERROR; bp->dirty_offset = 0; @@ -684,6 +686,7 @@ long buf_CleanAsyncLocked(cm_buf_t *bp, cm_req_t *reqp) bp->error = code; bp->dataVersion = CM_BUF_VERSION_BAD; /* bad */ bp->dirtyCounter++; + break; } #ifdef DISKCACHE95