Preventing FS full

Artem Bityutskiy dedekind1 at gmail.com
Thu Oct 28 10:54:55 EDT 2010


On Thu, 2010-10-28 at 17:52 +0300, Artem Bityutskiy wrote:
> On Thu, 2010-10-28 at 16:24 +0200, Joakim Tjernlund wrote:
> > Is there any way to temporarily lower the FS full limit(preferably on a process basis)
> > on JFFS2?
> > 
> > I want to safeguard the OS from FS full due to some process filling up the disk.
> 
> Mainstream FSes like ext3 can limit this on per-user or per-group basis,
> and we had a similar thing for JFFS2, do not remember if we upstreamed
> this, though. But I did send patches to the mtd ML.

Hmm, no, probably my memory is bad, but it seems ext3 only has the
reserve for root, see mkfs.ext3 -m option.

In UBIFS you can specify user ID or group ID of the owner of the
reserve. And we had done the same for JFFS2 long time ago.

-- 
Best Regards,
Artem Bityutskiy (Артём Битюцкий)




More information about the linux-mtd mailing list