kern/114766: [quotas] Disk quota does not work as expected

Mike Pritchard mpp at mail.mppsystems.com
Tue Mar 11 07:24:54 UTC 2008


On Mon, Mar 10, 2008 at 01:14:54PM +0100, Helmut Schneider wrote:
> From: "Manolis Kiagias" <sonicy at otenet.gr>
> 
> >Helmut Schneider wrote:
> >>
> >>Hm, there is no "quota" at all at boot time:
> >>
> >>[root at teg ~]# dmesg -a | grep -ir quota
> >>root at BSDHelmut:/usr/obj/usr/src/sys/SMP-WITH-QUOTA
> >>[root at teg ~]#
> >>
> >>According to "/etc/rc.d/quota", shouldn't there be at least a "Checking quotas:" or a "Enabling quotas:" in dmesg?!
> >It should:
> >
> >sonic at joshua:/usr/home/sonic$ dmesg -a |grep -ir quota
> >Checking quotas:
> >Enabling quotas:
> >
> >Please check your rc.conf. You have these lines:
> >
> >[root at mvt ~]# cat /etc/rc.conf | grep quota
> >quota_enable="YES"
> >check_quotas="YES"
> >
> >While you should have:
> >
> >enable_quotas="YES"
> >check_quotas="YES"
> >
> >It is, actually, the reverse of  the usual <servicename>_enable entry! Have a look at /etc/defaults/rc.conf and you will 
> >see this.
> 
> &$$% ?%&$ ?%%?&!!
> 
> Did that change? http://www.freebsddiary.org/quotas.php
> <SIC>

Ah, that would explain everything...Looks like enable_quotas appeared in 1999.
It is correctly documented in the FreeBSD handbook (whew!):

http://www.freebsd.org.doc/en_US.ISO8859-1/books/handbook/quotas.html

Looks like the FreeBSD diary is out of date.

Thanks Manolis for catching that...I just about to go hack quotacheck and supply 
a patch to Helmut to try and figure out what was really going on here :)
Sorry I didn't catch that earlier myself.

Looks like the information in the handbook needs a little attention also, but
it is basically correct.

Thanks for your patience Helmut!
-- 
Mike Pritchard
mpp @ FreeBSD.org
"If tyranny and oppression come to this land, it will be in the guise
of fighting a foreign enemy."  - James Madison (1787)


More information about the freebsd-bugs mailing list