Quota is based upon filesystems, but you can always create a virtual filesystem and mount it on a specific (empty) directory with the usrquota and/or grpquota flags.
In steps this will be:
create the mount point
create a file full of /dev/zero, large enough to the maximum size you want to reserve for the virtual filesystem
format this file with an ext3 filesystem (you can format a disk space even if it is not a block device, but double check the syntax of every - dangerous - formatting command)
mount the newly formatted disk space in the directory you've created as mount point, e.g. Code: mount -o loop,rw,usrquota,grpquota /path/to/the/formatted/disk/space /path/of/mount/point
发布评论
评论(2)
步骤如下:
代码:
mount -o Loop,rw,usrquota,grpquota /path/to/the/formatted/disk/space /path/of/mount/point
技巧就完成了。
教程此处。
原始答案此处
In steps this will be:
Code:
mount -o loop,rw,usrquota,grpquota /path/to/the/formatted/disk/space /path/of/mount/point
and the trick is done.
Tutorial here.
Original answer here
您可以限制文件系统上的配额。但它不是特定于目录的,而是文件系统和文件系统的。用户特定。
您还可以考虑使用 FUSE 开发自己的用户空间文件系统,但这会花费您的时间。
You could limit the quota on a filesystem. But it is not directory specific, but file system & user specific.
You might also consider developping your own user space file system using FUSE, but this will take your time.