JFFS

David Woodhouse dwmw2 at infradead.org
Tue Oct 23 18:00:32 EDT 2001


monitoreurope at yahoo.co.uk said:
>  As we use /var for FIFO data storage on this system (many 8-32K
> files) we need a reliable predictable free space estimation in order
> to be able to maximise the number of stored files before we delete to
> add new. Therefore a better understanding of the inner workings of
> JFFS would be appreciated.

We make stuff up in jffs2_statfs(). You may be able to improve it if you 
include c->erasing_size in the calculation of 'avail', and you'll probably 
want to include the size of the blocks on the erase_pending_list too.

--
dwmw2






More information about the linux-mtd mailing list