Date: Tue, 26 May 2009 15:03:13 +0300 From: Kostik Belousov <kostikbel@gmail.com> To: Menshikov Konstantin <kostjn@peterhost.ru> Cc: freebsd-hackers@freebsd.org Subject: Re: Disk quota for Jail. Discussion. Message-ID: <20090526120313.GA1927@deviant.kiev.zoral.com.ua> In-Reply-To: <4A1B8CF8.7030102@peterhost.ru> References: <4A1B8CF8.7030102@peterhost.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
--QLtikqB3wVxGaUVK Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, May 26, 2009 at 10:32:24AM +0400, Menshikov Konstantin wrote: > Hi. > Jail now have no disk quotas. > Users which use jail, use separate zfs or md device for jail, but it=20 > from a hopelessness. > It is necessary to discuss possible ways of realisation. > I suggest to make disk quotas for jail on the basis of the user quotas. >=20 > Introduction. > User UID and GID are located in inode and are always accessible. > No information about jail in ufs is present. All activity jail is=20 > limited root path. >=20 > The work scheme. > In structure prison it is added structures containing disk quotas and usa= ge. > At start Jail, we calculate the size root path and number of files in=20 > it, thus receiving current use of a disk. > In functions of allocation of disk blocks and inode, we check quotas and= =20 > we increase current use. UFS cannot determine whether the new allocation goes under the jail root or not. > If jail exceeds a quota, inquiry about allocation of the disk block or=20 > inode it is rejected. > After work end jail the information on disk use is lost. >=20 > What do you think about it? > There are other offers? > -- > Menshikov Konstantin. >=20 > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" --QLtikqB3wVxGaUVK Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAkob2oEACgkQC3+MBN1Mb4iBpACgo/032KYBBnt2K6Ety2UgWvZv 6F4AoOi9yZj9il5/SpsFIA5duCONcuqH =+nNi -----END PGP SIGNATURE----- --QLtikqB3wVxGaUVK--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090526120313.GA1927>