kernel - support dummy reallocblks in devfs
[dragonfly.git] / etc / rc.d / vfs_quota
blob2f31a9a5d41d95ce545d4fc2fb9216ace9c7ca41
1 #!/bin/sh
3 # PROVIDE: vfs_quota
4 # REQUIRE: mountcritlocal
5 # BEFORE: LOGIN
7 . /etc/rc.subr
9 name="vfs_quota"
10 rcvar=`set_rcvar`
11 start_cmd="vq_start"
13 vq_start()
15 if checkyesno vfs_quota_enable; then
16 # For each dir in $vfs_quota_sync, run vquota sync
18 case ${vfs_quota_sync} in
19 [Nn][Oo] | '')
22 echo -n 'Synchronizing VFS counters: '
23 for dir in ${vfs_quota_sync}; do
24 echo -n "${dir} "
25 if [ -d "${dir}" ]; then
26 /sbin/vquota sync ${dir}
28 done
29 echo '.'
31 esac
35 load_rc_config $name
36 run_rc_command "$1"