Disk quota for Jail. Discussion.

Kostik Belousov kostikbel at gmail.com
Tue May 26 12:03:26 UTC 2009


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 
> 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.
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 
> 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.
> 
> _______________________________________________
> freebsd-hackers at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at freebsd.org"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20090526/9d2d6cbc/attachment.pgp


More information about the freebsd-hackers mailing list