Contributed by sean on from the interesting idea but not quite all there dept.
Few days ago I've found interesting project page for OpenBSD. It allows to set quota per directory, which seems to be good solution for webhosting solutions. I've used this patch on my test box and it was running quite fine. The only thing that doesn't work is tracking quota while moving files.
I haven't noticed any performance fall or any other disadvantages using it. Hope it'll be rock-solid solution soon.
Actually that's the only working way to set directory quota I've found on the net.
Note: I gave this a quick run on 3.6 stable and it seems to work alright but note that you need to reformat a slice (ie. newfs) before enabling the option in fstab. I have not tried this on current so your milage may vary.
(Comments are closed)
By Anonymous Coward (213.80.9.187) on
Comments
By X (81.56.211.110) on
By tedu (64.173.147.27) on
2. could probably be in 3 pieces. a) parent pointers and cleanup. b) kernel patch. c) userland patch.
3. use rwlocks, don't roll own with flags and tsleep. if you're changing code that uses flags, fix it first. :)
4. don't use //. if it's not needed, delete it. if it may be needed later, #ifdef INOQ_DEBUG.
By Pete (64.255.167.140) on