From: Jeffrey Altman Date: Sat, 7 Apr 2012 02:30:41 +0000 (-0400) Subject: Windows: Disk Full errors instead of Quota Exceeded X-Git-Tag: upstream/1.8.0_pre1^2~2630 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=8648a8c45b593dce8982deec41e3caf48e80dc0c;p=packages%2Fo%2Fopenafs.git Windows: Disk Full errors instead of Quota Exceeded The AFS Redirector does not support the Windows quota interface therefore return STATUS_DISK_FULL for all over quota conditions. Change-Id: Idd8755b26ab65e423330eeb6cb0e1806dd6306c9 Reviewed-on: http://gerrit.openafs.org/7111 Reviewed-by: Jeffrey Altman Tested-by: Jeffrey Altman --- diff --git a/src/WINNT/afsd/smb.c b/src/WINNT/afsd/smb.c index 21288b5f4..7610a88ea 100644 --- a/src/WINNT/afsd/smb.c +++ b/src/WINNT/afsd/smb.c @@ -3195,7 +3195,14 @@ void smb_MapNTError(long code, unsigned long *NTStatusp, afs_uint32 redir) NTStatus = 0xC09820FBL; /* SMB use standard */ } else if (code == CM_ERROR_QUOTA) { - NTStatus = 0xC0000044L; /* Quota exceeded */ + /* + * AFS Redirector does not support Windows quota + * interface. Always report disk full instead. + */ + if (redir) + NTStatus = 0xC000007FL; /* Disk full */ + else + NTStatus = 0xC0000044L; /* Quota exceeded */ } else if (code == CM_ERROR_SPACE) { NTStatus = 0xC000007FL; /* Disk full */