From owner-freebsd-hackers@FreeBSD.ORG Tue Jul 12 13:03:35 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A3D8316A41C for ; Tue, 12 Jul 2005 13:03:35 +0000 (GMT) (envelope-from vladgalu@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 29BDD43D48 for ; Tue, 12 Jul 2005 13:03:34 +0000 (GMT) (envelope-from vladgalu@gmail.com) Received: by zproxy.gmail.com with SMTP id j2so519628nzf for ; Tue, 12 Jul 2005 06:03:34 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=mXIMRe/x69ZL5Pli5eM65Erbf3LZHwhyoeLLgEkIfefnos6Zh25iaKeCzpsOOdi7f7mx09jJpOk2gwBTxjRnVdK3Z56AtfoWBpDSxo0aICvbLPKUNLf+g7FALwW0GNX+VJsikyAsgfb23eC5c94KH+xQXb+OpVsw43BoklOxtKY= Received: by 10.36.129.6 with SMTP id b6mr1632603nzd; Tue, 12 Jul 2005 06:03:34 -0700 (PDT) Received: by 10.36.86.4 with HTTP; Tue, 12 Jul 2005 06:03:34 -0700 (PDT) Message-ID: <79722fad0507120603528ab24c@mail.gmail.com> Date: Tue, 12 Jul 2005 16:03:34 +0300 From: Vlad GALU To: Jone Jas , freebsd-hackers@freebsd.org In-Reply-To: <20050712121230.16762.qmail@web15010.mail.cnb.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <200507121114.42653.dom@goodforbusiness.co.uk> <20050712121230.16762.qmail@web15010.mail.cnb.yahoo.com> Cc: Subject: Re: limit jail disk space X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Vlad GALU List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Jul 2005 13:03:35 -0000 On 7/12/05, Jone Jas wrote: > Thanks for your reply. I googled and found this method but I just > did not have a try. > As for the code-hacking method I mentioned, anyone with any idea > is appreciated! =20 See ufs_quota.c, especially chkdqchg(). It is passed a struct ucred* parameter, which contains a struct prison* pointer. So I assume you can make your decision based on that. Of course, the userland quota management tools and the jail utilities need to be made aware of the kernel changes. --=20 If it's there, and you can see it, it's real. If it's not there, and you can see it, it's virtual. If it's there, and you can't see it, it's transparent. If it's not there, and you can't see it, you erased it.