[349] in Moira
Suggested change to zero_quotas script
daemon@ATHENA.MIT.EDU (99700000)
Tue Oct 22 20:12:56 1991
Date: Tue, 22 Oct 91 17:11:57 -0700
From: haynes@ucsco.UCSC.EDU (99700000)
To: bug-moira@Athena.MIT.EDU
We decided we would like the /etc/zero_old_quotas file to contain a
free-form list of the disk partitions which are to have their quotas
zeroed. Hence...
*** /tmp/,RCSt1a08384 Tue Oct 22 17:07:41 1991
--- /tmp/,RCSt2a08384 Tue Oct 22 17:07:42 1991
***************
*** 1,6 ****
#!/bin/csh -f
#
! # $Header: /a/sms/bin/RCS/zero_quotas,v 1.2 91/09/23 13:46:19 haynes Exp $
#
# This script zeros quotas for uid's which are not in standard input
# Note that the input must be sorted in increasing order by uid.
--- 1,6 ----
#!/bin/csh -f
#
! # $Header: /a/sms/bin/RCS/zero_quotas,v 1.3 91/10/22 16:40:36 garlick Exp $
#
# This script zeros quotas for uid's which are not in standard input
# Note that the input must be sorted in increasing order by uid.
***************
*** 12,17 ****
--- 12,21 ----
# one server at a time.
if ( -f /etc/zero_old_quotas ) then
+
+ grep $dev /etc/zero_old_quotas >! /dev/null
+ set stat = $status
+ if ($stat) exit
set current_uid = 0