|
发表于 2005-10-15 23:44:32
|
显示全部楼层
Post by zaiwen
Haha, glad I finally made myself understood...
You siad, for the second one, just simply setup the user quota should work, but you can only setup quota on /home, right? Then you are assuming users only write under /home/group1, not in his home directory.
If you assign each user 100M on /home, it doesn't mean user will have all the 100M on /home/group1, because each user also has write permission in their own /home/user directory. So for each user,
100M = /home/group1 + /home/user
?????? maybe I think too much....should take a break.....thank u for trying to understand my silly question
I guess you probably misunderstood the requirements.
1. quota for user/group controls how many spaces/inodes the user/group can consume. There is nothing to do with the dirs. User or users in the group can write to any dirs that they are allowed under the quotaon filesystem.
2. You don't need to think it that complex. Simply, if a user has quota on, then the limit is calc'ed consecutively across that filesystem, no matter if the user writes a file or dir or what... If a group has quota on, then all users in that group will share the limit. With these two, whichever comes first will apply just like what Kevin said.
3. What is a dir? A simple inode to tell the kernel what's underneath. Itself only takes 1 block and has nothing to do with space/inode boundary, but filesystems(actually partitions) which contain inode tables (many inodes) do have space boundary. Quota is a tool to calc and limit the space and inode, so that's why it can only works on filesystem/partition but not dir. |
|