Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Jan 2006 12:36:13 -0400 (AST)
From:      "Marc G. Fournier" <scrappy@hub.org>
To:        Michal Mertl <michal.mertl@i.cz>
Cc:        freebsd-questions@freebsd.org, Vladimir Dvorak <dvorakv@vdsoft.org>
Subject:   Re: quotas + jail ?
Message-ID:  <20060111123530.C1006@ganymede.hub.org>
In-Reply-To: <1136990772.832.32.camel@genius1.i.cz>
References:  <43C4D004.90101@vdsoft.org> <1136990772.832.32.camel@genius1.i.cz>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 11 Jan 2006, Michal Mertl wrote:

> Vladimir Dvorak wrote:
>> Hello,
>>
>> I have simple question - is possible to use quotas in jail(8) environment ?
>
> Yes, it is, although with some restrictions.
>
> You have to enable the disk quotas from the host (have them listed in
> host's /etc/fstab).
>
> To operate the quotas from inside the jail quotas have to be mentioned
> in jail's /etc/fstab too (when using the file name of quota file it has
> to be relative to jail's root). Repquota/edquota/quota work inside the
> jail.
>
> You have to keep in mind that disk quotas are in fact a property of a
> filesystem and are not related to jails at all. So if two jails share a
> filesystem the disk quotas are shared too. If you have users with the
> same UID in both the jails they will share the quota.

How hard would it be to extend quotas so that its not just uid/gid based, 
but directory?  ie. everything under /vm/jail1 falls under this quota, 
regardless of uid/gid?

----
Marc G. Fournier           Hub.Org Networking Services (http://www.hub.org)
Email: scrappy@hub.org           Yahoo!: yscrappy              ICQ: 7615664



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