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:
parent
6c81a0aecb
commit
a0072eda86
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=166121
@ -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).
|
||||
|
@ -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.'
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user