*BSD News Article 49801


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!news.kei.com!nntp.et.byu.edu!news.byu.edu!hamblin.math.byu.edu!park.uvsc.edu!usenet
From: Terry Lambert <terry@cs.weber.edu>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Disk quotas - broken?
Date: 25 Aug 1995 02:32:13 GMT
Organization: Utah Valley State College, Orem, Utah
Lines: 33
Message-ID: <41jcnd$kp5@park.uvsc.edu>
References: <41f4p3$493@bee.cs.kiev.ua> <41hgkd$9dl@bonnie.tcd-dresden.de>
NNTP-Posting-Host: hecate.artisoft.com

j@bonnie.heep.sax.de (J Wunsch) wrote:
>
> Ruslan Belkin <rus@monolit.kiev.ua> wrote:
> >Does anybody know why disk quotas don't work in FreeBSD. Is it common
> >problem for 4.4 lite? Problem presents in open-bugs list from January or
> >so. 
> 
> I think it's only broken if you try to apply it to the root file
> system, or if you try to apply it to multiple file systems (under some
> circumstances that Terry Lambert will happily explaint to you :).

There is no computation of transitive closure over the directed
graph for intersecting quota files.  Basically, this is a deadly
embrace deadlock issue having to do with cross-mount-point vnode
locking semantics.

Or in English:

1)	Don't turn on quotas on '/'.
2)	Put the quota file on the file system that the quotas
	are to be enforced on.  ie:

	FS	QUOTA FILE
	/usr	/usr/admin/quotas
	/home	/home/admin/quotas
	...


                                        Terry Lambert
                                        terry@cs.weber.edu
---
Any opinions in this posting are my own and not those of my present
or previous employers.