guru input needed! (re-inventing disk quotas)
David A. Bandel
david
Mon May 17 11:29:38 PDT 2004
On Mon, 8 Apr 2002 13:10:01 -0400
begin Douglas J Hunley <doug at hunley.homeip.net> spewed forth:
> On Monday 08 April 2002 12:56, Net Llama! wrote:
> > THis sounds like it would work, except, what happens if someone wants
> > to pay for 20MB of space? Sure, you could create a loop back file of
> > 20MB, but this doesn't seem all that elegant.
> >
> > Also, copying the contents of one 'allocation' to a larger one is also
> > not all that elegant.
>
> well, I know it's not elegant, but...
that's an understatement.
Have you tested:
quota support?
pam_limits?
If neither of the above will work for you, and you're determined to play
filesystem games, why not just give each user a mount, mount them a proper
filesystem, and if it needs expanding in chunks, you can do that easily
using LVM. The LVM stuff will allow you to easily expand or shrink any
filesystem on the fly (assuming the filesystem to be shrunk has space to
shrink down to). No copying necessary. The LVM stuff works easily and
well. Give it a try and stop playing with loopbacks.
Ciao,
David A. Bandel
--
Focus on the dream, not the competition.
-- Nemesis Racing Team motto
More information about the Linux-users
mailing list