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
This commit is contained in:
Mike Pritchard 2007-01-20 04:24:20 +00:00
parent 6c81a0aecb
commit a0072eda86
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=166121
2 changed files with 6 additions and 3 deletions

View File

@ -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).

View File

@ -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.'
}