From owner-freebsd-questions@FreeBSD.ORG Sat Aug 9 18:37:54 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B3964106570D for ; Sat, 9 Aug 2008 18:37:54 +0000 (UTC) (envelope-from lists@jnielsen.net) Received: from ns1.jnielsen.net (ns1.jnielsen.net [69.55.238.237]) by mx1.freebsd.org (Postfix) with ESMTP id 8F0038FC15 for ; Sat, 9 Aug 2008 18:37:54 +0000 (UTC) (envelope-from lists@jnielsen.net) Received: from insp.local (rrcs-74-218-226-253.se.biz.rr.com [74.218.226.253]) (authenticated bits=0) by ns1.jnielsen.net (8.12.9p2/8.12.9) with ESMTP id m79IbqVD095590; Sat, 9 Aug 2008 14:37:53 -0400 (EDT) (envelope-from lists@jnielsen.net) From: John Nielsen To: freebsd-questions@freebsd.org Date: Sat, 9 Aug 2008 14:34:45 -0400 User-Agent: KMail/1.9.7 References: <002101c8f987$7f814aa0$dc96eed5@ihlasnetym> In-Reply-To: X-Face: #X5#Y*q>F:]zT!DegL3z5Xo'^MN[$8k\[4^3rN~wm=s=Uw(sW}R?3b^*f1Wu*.<=?utf-8?q?of=5F4NrS=0A=09P*M/9CpxDo!D6?=)IY1w<9B1jB; tBQf[RU-R<,I)e"$q7N7 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200808091434.46537.lists@jnielsen.net> X-Virus-Scanned: ClamAV version 0.88.4, clamav-milter version 0.88.4 on ns1.jnielsen.net X-Virus-Status: Clean Cc: Yavuz Maslak Subject: Re: How to set quota ( as Mbyte ) for a directory? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Aug 2008 18:37:54 -0000 On Friday 08 August 2008, Chuck Swiger wrote: > On Aug 8, 2008, at 11:49 AM, Yavuz Maslak wrote: > > On freebsd7, How to set quota for a directory? > > For instance I want to set 100Mbyte quota for a directory. How can > > I do > > that ? > > Quotas are handled per filesystem, not per directory. > See "man quotaon" & "man quotacheck", or the FreeBSD Handbook. If you're in a position to use/migrate to ZFS, quotas are something you get "for free". You still have to apply them on a per-filesystem basis but a ZFS filesystem is just part of a pool so it's a lot more dynamic. See the "quota" and "refquota" property descriptions in the zfs(1M) manpage. However, ZFS is only available in FreeBSD 7.0 or newer and is still considered experimental. There is a patch for -HEAD (8-CURRENT) that brings in the latest version and addresses many issues, but it hasn't been backported to 7.x (and may not be). JN