Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 Aug 2008 14:34:45 -0400
From:      John Nielsen <lists@jnielsen.net>
To:        freebsd-questions@freebsd.org
Cc:        Yavuz Maslak <maslak@ihlas.net.tr>
Subject:   Re: How to set quota ( as Mbyte )  for a directory?
Message-ID:  <200808091434.46537.lists@jnielsen.net>
In-Reply-To: <FFE837A6-0690-49A8-B435-90E7C80701E7@mac.com>
References:  <002101c8f987$7f814aa0$dc96eed5@ihlasnetym> <FFE837A6-0690-49A8-B435-90E7C80701E7@mac.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200808091434.46537.lists>