From: Derrick Brashear Date: Wed, 2 Jul 2003 00:53:28 +0000 (+0000) Subject: STABLE12-translate-more-vol-errors-20030701 X-Git-Tag: openafs-stable-1_2_10~20 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=b0427e0d641e33fc813a23cf19c9ca9b43178b24;p=packages%2Fo%2Fopenafs.git STABLE12-translate-more-vol-errors-20030701 based on complaint from Ryan Underwood on openafs-info. translate to EDQUOT and ENOSPC actually instead of just returning random numbers (cherry picked from commit a633a9920803860e8b4167501f0ffa171fcf40c2) --- diff --git a/src/afs/afs_analyze.c b/src/afs/afs_analyze.c index ede5606a3..e3b59fa22 100644 --- a/src/afs/afs_analyze.c +++ b/src/afs/afs_analyze.c @@ -129,6 +129,17 @@ afs_CheckCode(acode, areq, where) return EWOULDBLOCK; if (acode == VNOVNODE) return ENOENT; + if (acode == VDISKFULL) + return ENOSPC; + if (acode == VOVERQUOTA) + return +#ifdef EDQUOT + EDQUOT +#else + ENOSPC +#endif + ; + return acode; } /*afs_CheckCode*/ diff --git a/src/afs/afs_dcache.c b/src/afs/afs_dcache.c index df908d2bf..fea96b364 100644 --- a/src/afs/afs_dcache.c +++ b/src/afs/afs_dcache.c @@ -182,7 +182,7 @@ afs_StoreWarn(acode, avolume, aflags) afs_warnuser(problem_fmt, avolume, partfull); } else -#ifndef AFS_SUN5_ENV +#ifdef EDQUOT /* EDQUOT doesn't exist on solaris and won't be sent by the server. * Instead ENOSPC will be sent... */