[2846] in Release_Engineering

home help back first fref pref prev next nref lref last post

premature mail... new quota patch

daemon@ATHENA.MIT.EDU (Richard Basch)
Fri May 29 21:28:05 1992

Date: Fri, 29 May 92 21:27:49 -0400
To: rel-eng@MIT.EDU, testers@MIT.EDU
From: "Richard Basch" <basch@MIT.EDU>


The other quota patch was functionally ok, but did not really correct
the problems I described... I sent the wrong version...  sorry.

-R

*** /source/athena/ucb/quota/afs.c	Fri May 29 15:47:35 1992
--- ./afs.c	Fri May 29 21:25:21 1992
***************
*** 112,123 ****
      vs = (struct VolumeStatus *) foo;
  
      if (vs->MaxQuota && (vs->BlocksInUse > vs->MaxQuota)) {
! 	sprintf(buf,"User %s over disk quota on %s, remove %dK\n", name,
  		path, (vs->BlocksInUse - vs->MaxQuota));
  	putwarning(buf);
      }
      else if (vs->MaxQuota && (vs->BlocksInUse >= vs->MaxQuota * 9 / 10)) {
! 	sprintf(buf,"User %s has used %d%% of his disk quota on %s\n", name,
  		(int)((vs->BlocksInUse*100.0/vs->MaxQuota)+0.5), path);
  	putwarning(buf);
      }
--- 112,123 ----
      vs = (struct VolumeStatus *) foo;
  
      if (vs->MaxQuota && (vs->BlocksInUse > vs->MaxQuota)) {
! 	sprintf(buf,"Over disk quota on %s, remove %dK.\n",
  		path, (vs->BlocksInUse - vs->MaxQuota));
  	putwarning(buf);
      }
      else if (vs->MaxQuota && (vs->BlocksInUse >= vs->MaxQuota * 9 / 10)) {
! 	sprintf(buf,"%d%% of the disk quota on %s has been used.\n",
  		(int)((vs->BlocksInUse*100.0/vs->MaxQuota)+0.5), path);
  	putwarning(buf);
      }

home help back first fref pref prev next nref lref last post