From owner-freebsd-questions@FreeBSD.ORG Wed Jan 11 16:59:05 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4D7A816A41F for ; Wed, 11 Jan 2006 16:59:05 +0000 (GMT) (envelope-from ceri@submonkey.net) Received: from hermes2.cf.ac.uk (hermes2.cf.ac.uk [131.251.0.113]) by mx1.FreeBSD.org (Postfix) with ESMTP id AE3A943D45 for ; Wed, 11 Jan 2006 16:59:03 +0000 (GMT) (envelope-from ceri@submonkey.net) Received: from fenrir.insrv.cf.ac.uk ([131.251.50.213]) by hermes2.cf.ac.uk with esmtp (Exim 4.34) id 1EwjJM-0000vi-H8; Wed, 11 Jan 2006 16:59:00 +0000 In-Reply-To: <20060111123530.C1006@ganymede.hub.org> References: <43C4D004.90101@vdsoft.org> <1136990772.832.32.camel@genius1.i.cz> <20060111123530.C1006@ganymede.hub.org> Mime-Version: 1.0 (Apple Message framework v746.2) Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="Apple-Mail-13--222245299" Message-Id: <434AC01B-0C6E-4019-9644-1E9283098B30@submonkey.net> Content-Transfer-Encoding: 7bit From: Ceri Davies Date: Wed, 11 Jan 2006 16:59:04 +0000 To: Marc G. Fournier X-Pgp-Agent: GPGMail 1.1.1 (Tiger) X-Mailer: Apple Mail (2.746.2) X-Virus-Scanned: Cardiff University Sophos AV Cc: Vladimir Dvorak , Michal Mertl , freebsd-questions@freebsd.org Subject: Re: quotas + jail ? 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: Wed, 11 Jan 2006 16:59:05 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --Apple-Mail-13--222245299 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed 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 --Apple-Mail-13--222245299 content-type: application/pgp-signature; x-mac-type=70674453; name=PGP.sig content-description: This is a digitally signed message part content-disposition: inline; filename=PGP.sig content-transfer-encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (Darwin) iD8DBQFDxTlYme8yCsQvJJ0RAhNDAKCvR2WljpCn+871w1A8azwBxLP6VACfetQ5 MzSFRsbWUHuTBuzU6r1GiMs= =sTZN -----END PGP SIGNATURE----- --Apple-Mail-13--222245299--