From 39e0b5bbe5212267cdc3d616917a2ff74932d186 Mon Sep 17 00:00:00 2001 From: probe Date: Tue, 18 Oct 1994 13:42:13 +0000 Subject: [PATCH] Send a zwrite to -c afsadm if there is a quota change of 40MB+ --- incremental/afs_quota.pl | 5 +++++ 1 file changed, 5 insertions(+) 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); -- 2.45.2