Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Jul 2005 21:34:43 +0800 (CST)
From:      Jone Jas <jas_arlerr@yahoo.com.cn>
To:        Vlad GALU <vladgalu@gmail.com>
Cc:        freebsd hackers <freebsd-hackers@freebsd.org>
Subject:   Re: limit jail disk space
Message-ID:  <20050713133443.73081.qmail@web15003.mail.cnb.yahoo.com>
In-Reply-To: <79722fad05071303383a75e685@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

Vlad GALU <vladgalu@gmail.com> 写道:
 > Sure. The tools may control all limits such as cpu time, >memory, bandwidth, disk space, etc. I have read the Linux >VServer dlimit code. But I am not very sure where to put the >hooks for inode/blocks control of jail in FreeBSD. This is why I >open this thread. Vlad GALU said I can look to the quota >method. I will try. Thanks.

>It will most probably be tricky, because you can practically >have the same uid in both worlds (the host and the jail) with >different quota settings mapped to it. So upon granting fs >resources you'd have to check which 'world' the request came >from. If the quota for that world isn't overdue, you check for >that uid's quota inside that world and if that's still OK you >grant the resource. 

If we use different start number for users in jails and in the host as said on some wikis (i.e., increase the start uid for jail users), the different quota mapping will not be confused. 

>You will probably have to add an extra member to the prison >structure, to hold the global quota for that jail.

Yes, I do think so.


 


		
---------------------------------
DO YOU YAHOO!?
  雅虎邮箱超强增值服务-2G超大空间、pop3收信、无限量邮件提醒 



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