tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Quota on tmpfs



On Fri, Jul 13, 2012 at 10:15:55AM +0200, Francois Tigeot wrote:
 > > I suspect people used to traditional quota systems will not entirely
 > > like the idea of a quota system that has no persistent storage... but
 > > I'm not about to tell you that what you're doing is wrong :-)
 > 
 > Oh, the system is not completely done yet. My goal was to first implement
 > accounting and limit enforcement; persistency can be added later ;-)

Well... yes, but it's a significant part of the implementation.

 > The quickest way is to save usage counters and limits in a regular file like
 > the old BSD quota system used to do it.
 > This can even be done in userland.

Limits, yes; saving the usage data in userland is problematic, because
it's likely to end up inconsistent with the filesystem.

Although I suppose if you're willing to run quotacheck on every boot,
this doesn't matter much. (tip though: quotacheck is inherently slow)

Are you likely to adopt the new NetBSD quota(3) library interface? It
may be a little more complicated, but it will let you import the
traditional quota tools from NetBSD instead of rewriting them and save
you from having to port a few pieces of 3rd-party software... and it
shouldn't constrain your implementation much.

-- 
David A. Holland
dholland%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index