Date: Tue, 26 May 2009 10:32:24 +0400 From: Menshikov Konstantin <kostjn@peterhost.ru> To: freebsd-hackers@freebsd.org Subject: Disk quota for Jail. Discussion. Message-ID: <4A1B8CF8.7030102@peterhost.ru>
next in thread | raw e-mail | index | archive | help
Hi. Jail now have no disk quotas. Users which use jail, use separate zfs or md device for jail, but it 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. 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 limited root path. The work scheme. In structure prison it is added structures containing disk quotas and usage. At start Jail, we calculate the size root path and number of files in it, thus receiving current use of a disk. In functions of allocation of disk blocks and inode, we check quotas and we increase current use. If jail exceeds a quota, inquiry about allocation of the disk block or inode it is rejected. After work end jail the information on disk use is lost. What do you think about it? There are other offers? -- Menshikov Konstantin.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4A1B8CF8.7030102>