From owner-freebsd-questions@FreeBSD.ORG Wed Jan 11 16:36:16 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 BAB3C16A41F for ; Wed, 11 Jan 2006 16:36:16 +0000 (GMT) (envelope-from scrappy@hub.org) Received: from hub.org (hub.org [200.46.204.220]) by mx1.FreeBSD.org (Postfix) with ESMTP id F33BC43D46 for ; Wed, 11 Jan 2006 16:36:15 +0000 (GMT) (envelope-from scrappy@hub.org) Received: from localhost (unknown [200.46.204.144]) by hub.org (Postfix) with ESMTP id 593A862C8D5; Wed, 11 Jan 2006 12:36:15 -0400 (AST) Received: from hub.org ([200.46.204.220]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 12408-09; Wed, 11 Jan 2006 12:36:15 -0400 (AST) Received: from ganymede.hub.org (blk-222-82-85.eastlink.ca [24.222.82.85]) by hub.org (Postfix) with ESMTP id E9F8162C8D3; Wed, 11 Jan 2006 12:36:14 -0400 (AST) Received: by ganymede.hub.org (Postfix, from userid 1000) id 798FD3CA0A; Wed, 11 Jan 2006 12:36:13 -0400 (AST) Received: from localhost (localhost [127.0.0.1]) by ganymede.hub.org (Postfix) with ESMTP id 78C9E370F0; Wed, 11 Jan 2006 12:36:13 -0400 (AST) Date: Wed, 11 Jan 2006 12:36:13 -0400 (AST) From: "Marc G. Fournier" To: Michal Mertl In-Reply-To: <1136990772.832.32.camel@genius1.i.cz> Message-ID: <20060111123530.C1006@ganymede.hub.org> References: <43C4D004.90101@vdsoft.org> <1136990772.832.32.camel@genius1.i.cz> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: by amavisd-new at hub.org Cc: freebsd-questions@freebsd.org, Vladimir Dvorak 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:36:16 -0000 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