From owner-cvs-all Mon Mar 15 14: 0:28 1999 Delivered-To: cvs-all@freebsd.org Received: from jade.chc-chimes.com (jade.chc-chimes.com [206.67.97.83]) by hub.freebsd.org (Postfix) with ESMTP id 3092F15864; Mon, 15 Mar 1999 14:00:21 -0800 (PST) (envelope-from billf@jade.chc-chimes.com) Received: from localhost (billf@localhost) by jade.chc-chimes.com (8.8.8/8.8.8) with SMTP id RAA27855; Mon, 15 Mar 1999 17:00:59 -0500 (EST) (envelope-from billf@jade.chc-chimes.com) Date: Mon, 15 Mar 1999 17:00:59 -0500 (EST) From: Bill Fumerola To: committers@FreeBSD.org Cc: cvs-all@FreeBSD.org, veers@disturbed.net Subject: patches (fwd) Message-ID: MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="0-514290963-921534090=:745" Content-ID: Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk 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: 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 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