guru input needed! (re-inventing disk quotas)
Douglas J Hunley
doug
Mon May 17 11:29:37 PDT 2004
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...
as for expanding.... Take this example:
1. setup joe with default 10M
2. months go by, joe needs more space (20M)
3. accounting aproves
4. create a /loops/tmp of 10M
5. umount /loops/joe
6. cat /loops/tmp >> /loops/joe && rm /loops/tmp
that would increase /loops/joe to 20M, right?
Obviously, I'd wrap a script or a curses face around this
--
Douglas J Hunley (doug at hunley.homeip.net) - Linux User #174778
Admin: Linux StepByStep - http://www.linux-sxs.org
and http://jobs.linux-sxs.org
I will always cherish the initial misconceptions I had
about you being competent.
More information about the Linux-users
mailing list