Hope the question is not too general.
As I have a vserver (Ubuntu 12.04) I cannot restrict the size of directories by using quotas. I wonder if there are other possibilities to achieve this.
The only method I could imagine would be a combination of inotify + config-file where the maximum size is stated + command which, well, makes the file empty or removes it or something like this. It's not about restricting user directories but automatically written files like logfiles.
I know it's not the best way, but the only one I think would work. Do you have better ones?