From: probe Date: Tue, 18 Oct 1994 13:42:13 +0000 (+0000) Subject: Send a zwrite to -c afsadm if there is a quota change of 40MB+ X-Git-Tag: OPSSRC_BASE~40 X-Git-Url: http://andersk.mit.edu/gitweb/moira.git/commitdiff_plain/39e0b5bbe5212267cdc3d616917a2ff74932d186 Send a zwrite to -c afsadm if there is a quota change of 40MB+ --- diff --git a/incremental/afs_quota.pl b/incremental/afs_quota.pl index 487f9283..de75feee 100644 --- a/incremental/afs_quota.pl +++ b/incremental/afs_quota.pl @@ -39,8 +39,13 @@ shift(@tmp), $_ = shift(@tmp); system("$fs","sq",$path,$newq); die "Unable to change quota on $path\n" if ($?); + &afs_quota_adj($cell,$asrv,$apart,$newq-$oldq); +system("$zwrite","-c","afsadm","-m", + "Changed quota on volume $vname ($asrv:$apart) from $oldq to $newq") + if (($newq-$oldq > 39999) || ($oldq-$newq > 39999)); + #$stat_fs = $?; #$stat_qa = &afs_quota_adj($cell,$asrv,$apart,($stat_fs ? 0 : $newq-$oldq)); #die "Unable to change quota on $path\n" if ($stat_fs && $stat_qa);