On Wed, 2003-07-09 at 18:07, Asier Goikoetxea Yanci wrote:
> Thanks James, although it was not exactly what I was looking for (I wanted to 
> assign a limit to a single folder, not to the whole system), your suggestion 
> drived me to find out the C function 'setrlimit', with which I can assign a 
> maximum numbers of bytes that can take each file created by a program after 
> calling this function.
> 
> Thanks again,
> 
> Asier

Cool,  Long as your problem is solved.. I'll grin peacefully over in my
corner.

James

> 
> On Wednesday 09 Jul 2003 7:31 pm, James Sparenberg wrote:
> > Asier,
> >
> >    The command you may want is ulimit.  This will limit the size of a
> > specific file and since in Linux everything is a file it has affect on
> > directories as well. (Although not as fine tuned.)  The man page for
> > Ulimite bytes and I haven't found a good ref on how to use it here.
> > Basically you enter a size in k so for a 2 meg limit you would do
> >
> > ulimit 2048
> >
> > and now you can't create a file larger than 2 megs.  Since I usually use
> > things the way they are (unlimited) I do it that way.  Downside.  This
> > affects all users on the box.  All file systems etc.  For something
> > finer grained I'm not sure.
> >
> > James
> 
> 
> 
> ______________________________________________________________________
> Want to buy your Pack or Services from MandrakeSoft? 
> Go to http://www.mandrakestore.com


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to