Messages in this thread |  | | Date | Thu, 18 Oct 2001 15:56:36 -0700 | From | Mike Fedyk <> | Subject | Re: RFC - tree quotas for Linux (2.4.12, ext2) |
| |
On Thu, Oct 18, 2001 at 03:17:18PM -0600, Andreas Dilger wrote: > On Oct 18, 2001 13:20 -0700, Mike Fedyk wrote: > > Actually, it looks like Niel is creating a two level Quota system. In ther > > normal quota system, if you own a file anywhere, it is attributed to you. > > But, in the tree quota system, it is attributed to the owner of the tree... > > Hmm, we already have group quotas, and (excluding ACLs) you would need to > have group write permission into the tree to be able to write there. How > does the tree quota help us in the end? Either users are "nice" and you > don't need quotas, or users are "not nice" and you don't want them to be > able to dump their files into an area that doesn't keep them "in check" as > quotas are designed to do. >
Hmm, I think I just thought of a use for the tree quota concept.
Lets say that you have about 50GB of space, but you only want to allow 20GB for a certain tree (possibly mp3s), and you want to keep user ownerships of the files they contribute.
Now try to use the group quota idea.
User makes mp3 user can chgrp to any user that they are a member of... copy to /mp3s.
Now the group (and quota) that was setup for mp3s has been circumvented.
With the tree quota, an entire tree could be assigned to a certain group, and then use the group quota tools...
The only other way I can see to fix this would be a cron job to walk the tree and set the group to whatever has been setup, but that looks like a hack to me.
Is there another way to fix this besides putting all mp3s on a separate partition?
Mike - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|  |