From owner-freebsd-hackers Mon Aug 3 12:21:28 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA20917 for freebsd-hackers-outgoing; Mon, 3 Aug 1998 12:21:28 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from smtp01.primenet.com (smtp01.primenet.com [206.165.6.131]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA20881 for ; Mon, 3 Aug 1998 12:21:14 -0700 (PDT) (envelope-from tlambert@usr07.primenet.com) Received: (from daemon@localhost) by smtp01.primenet.com (8.8.8/8.8.8) id MAA23779; Mon, 3 Aug 1998 12:20:59 -0700 (MST) Received: from usr07.primenet.com(206.165.6.207) via SMTP by smtp01.primenet.com, id smtpd023747; Mon Aug 3 12:20:53 1998 Received: (from tlambert@localhost) by usr07.primenet.com (8.8.5/8.8.5) id MAA01206; Mon, 3 Aug 1998 12:20:51 -0700 (MST) From: Terry Lambert Message-Id: <199808031920.MAA01206@usr07.primenet.com> Subject: Re: User Quotas To: joes@shasta.wstein.com (Joseph Stein) Date: Mon, 3 Aug 1998 19:20:51 +0000 (GMT) Cc: hackers@FreeBSD.ORG In-Reply-To: <199808031730.KAA13119@shasta.wstein.com> from "Joseph Stein" at Aug 3, 98 10:30:43 am X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > I see numerous references (Handbook, The Complete FreeBSD, etc) to the > fact that quotas are "buggy" and should be used only sparingly. > > To what extent are quotas "buggy", what are the bugs, and are there any > plans to correct them? If the quota file is not on the FS to which the quotas are applied and/or there is a user/group quota that applies to the quota file, then you can deadlock. To avoid this, you should use one of the "cookbooks" for correct quota setup that have been posted to -current or -hackers over the years. Do not expect quotas to work properly over NFS; the lease management code does not enforce distributed cache coherency correcly because of missing assertions (see other discussions of NFS). You can get around this by forcing the use of NFSv2, which effectively disables thes (and many other) optimizations. > Where do I look if I want to tinker? (Obviously, the source code, but > where are they implemented?) Ideally, you would tinker with VFS stacking. The best way to implement quotas is to implement them as a stacking layer, so that they can apply to all FS's. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message