Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Mar 1999 17:00:59 -0500 (EST)
From:      Bill Fumerola <billf@jade.chc-chimes.com>
To:        committers@FreeBSD.org
Cc:        cvs-all@FreeBSD.org, veers@disturbed.net
Subject:   patches (fwd)
Message-ID:  <Pine.BSF.3.96.990315165622.10474G-100000@jade.chc-chimes.com>

next in thread | raw e-mail | index | archive | help
  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.
  Send mail to mime@docserver.cac.washington.edu for more info.

--0-514290963-921534090=:745
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
Content-ID: <Pine.BSF.3.96.990315165622.10474I@jade.chc-chimes.com>


After a conversation with the submitter I was sent this patch, and I think
it has value. It is a reasonable assumption that if a system has been
running quotaon previous to boot, that the quotas should be in check, and
the system should be able to pick up where it left off.

This can save a lot of time on boot. 

Any objections to the following patch?

- bill fumerola - billf@chc-chimes.com - BF1560 - computer horizons corp -
- ph:(800) 252-2421 - bfumerol@computerhorizons.com - billf@FreeBSD.org  -



---------- Forwarded message ----------
Date: Mon, 15 Mar 1999 16:41:30 -0500 (EST)
From: Alex Perel <veers@disturbed.net>
To: billf@jade.chc-chimes.com
Subject: patches

Index: rc
===================================================================
RCS file: /cvs/src/etc/rc,v
retrieving revision 1.182
diff -u -r1.182 rc
--- rc	1999/03/14 20:26:39	1.182
+++ rc	1999/03/15 21:04:28
@@ -233,13 +233,22 @@
 	network_pass2
 fi
 
-# Check the quotas (must be after ypbind if using NIS)
-if [ "X${check_quotas}" = X"YES" ]; then
-	echo -n 'checking quotas:'
-	quotacheck -a
-	echo ' done.'
-	quotaon -a
+# Enable/Check the quotas (must be after ypbind if using NIS)
+if [ "X${enable_quotas}" = X"YES" ]; then
+
+    # Only check quotas if they have been previously enabled, and requested
+    if [ "X${check_quotas}" = X"YES" ]; then
+            echo -n 'checking quotas:'
+            quotacheck -a
+            echo ' done.'
+    fi
+
+        echo -n 'enabling quotas:'
+        quotaon -a
+        echo ' done.'
 fi
+
+
 
 if [ -n "$network_pass2_done" ]; then
 	network_pass3
Index: defaults/rc.conf
===================================================================
RCS file: /cvs/src/etc/defaults/rc.conf,v
retrieving revision 1.3
diff -u -r1.3 rc.conf
--- rc.conf	1999/03/11 16:17:24	1.3
+++ rc.conf	1999/03/15 21:04:32
@@ -186,6 +186,7 @@
 sendmail_enable="YES"	# Run the sendmail daemon (or NO).
 sendmail_flags="-bd -q30m" # Flags to sendmail (if enabled)
 dumpdev="NO"		# Device name to crashdump to (if enabled).
+enable_quotas="NO"      # turn on quotas on startup (or NO).
 check_quotas="NO"	# Check quotas (or NO).
 accounting_enable="NO"	# Turn on process accounting (or NO).
 ibcs2_enable="NO"	# Ibcs2 (SCO) emulation loaded at startup (or NO).


--0-514290963-921534090=:745--


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.990315165622.10474G-100000>