From a0072eda8611a9d27cd37c2cb3d990bb8a3c3d5d Mon Sep 17 00:00:00 2001 From: Mike Pritchard Date: Sat, 20 Jan 2007 04:24:20 +0000 Subject: [PATCH] Add the following knobs for quotas if they are enabled: quotaon_flags - flags for the quotaon command quotaoff_flags - flags for the quotaoff command quotacheck_flags - flags for the quotacheck command --- etc/defaults/rc.conf | 3 +++ etc/rc.d/quota | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/etc/defaults/rc.conf b/etc/defaults/rc.conf index 6f1ba626668..89b93d294f6 100644 --- a/etc/defaults/rc.conf +++ b/etc/defaults/rc.conf @@ -495,6 +495,9 @@ dumpdir="/var/crash" # Directory where crash dumps are to be stored savecore_flags="" # Used if dumpdev is enabled above, and present. enable_quotas="NO" # turn on quotas on startup (or NO). check_quotas="YES" # Check quotas on startup (or NO). +quotaon_flags="-a" # Turn quotas on for all file systems (if enabled) +quotaoff_flags="-a" # Turn quotas off for all file systems at shutdown +quotacheck_flags="-a" # Check all file system quotas (if enabled) accounting_enable="NO" # Turn on process accounting (or NO). ibcs2_enable="NO" # Ibcs2 (SCO) emulation loaded at startup (or NO). ibcs2_loaders="coff" # List of additional Ibcs2 loaders (or NO). diff --git a/etc/rc.d/quota b/etc/rc.d/quota index 8a81f83ab97..e0f4bc8dc43 100755 --- a/etc/rc.d/quota +++ b/etc/rc.d/quota @@ -16,18 +16,18 @@ name="quota" rcvar="enable_quotas" start_cmd="quota_start" -stop_cmd="/usr/sbin/quotaoff -a" +stop_cmd="/usr/sbin/quotaoff ${quotaoff_flags}" quota_start() { if checkyesno check_quotas; then echo -n 'Checking quotas:' - quotacheck -a + quotacheck ${quotacheck_flags} echo ' done.' fi echo -n 'Enabling quotas:' - quotaon -a + quotaon ${quotaon_flags} echo ' done.' }