quotas + jail ?
Ceri Davies
ceri at submonkey.net
Wed Jan 11 08:59:05 PST 2006
On 11 Jan 2006, at 16:36, Marc G. Fournier wrote:
> 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?
Given the lack of a unique name for files in UFS, quite difficult,
I'd presume.
Ceri
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20060111/02c12da5/PGP.bin
More information about the freebsd-questions
mailing list