I'm trying to follow along with FAQ 10.11 and it just doesn't seem to work right for me.

$ grep quota /etc/fstab
/dev/wd0g /var ffs rw,nodev,nosuid,userquota,groupquota 1 2

$ man edquota | grep -A1 one.second
     should be imposed.  Setting a grace period to one second indicates that
     no grace period should be granted.

$ sudo edquota -t -u
Time units may be: days, hours, minutes, or seconds
Grace period before enforcing soft limits for users:
/var: block grace period: 1 second, file grace period: 0 days

$ sudo reboot /* The FAQ mentions "quotaon -a", but it seems a reboot is required to create the quota files expected by quotaon */

$ sudo quota clgw
Disk quotas for user clgw (uid 1002):
Filesystem blocks quota limit grace files quota limit grace
           /var    3552    4096    4096               1       0       0


$ cat 700K.txt | mail clgw

$ sudo quota clgw
Disk quotas for user clgw (uid 1002):
Filesystem blocks quota limit grace files quota limit grace
           /var    4256*   4096    4096   7days       1       0       0


OpenBSD 3.7 (from cdrom).  3.9 has been ordered.

Q1) Is there a way to create quota files without reboot?
Q2) Why is grace still reported as '7 days' instead of '1 second'?
Q3) Why did mail get delivered?

Reply via email to