From 8648a8c45b593dce8982deec41e3caf48e80dc0c Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Fri, 6 Apr 2012 22:30:41 -0400 Subject: [PATCH] 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 --- src/WINNT/afsd/smb.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 */ -- 2.39.5