Read only forced on jffs2 by mtd layer?

Artem B. Bityutskiy dedekind at yandex.ru
Fri Mar 10 11:05:45 EST 2006


Josh Boyer wrote:
> Sorta.  If there isn't enough physical space to write nodes out, then
> you can't really have a writeable filesystem.  It'll actually just
> return -ENOSPC for everything instead of -EROFS, but the effect is the
> same.
I mean, if I ask to mount read-write, but end-up with RO, this is bad. 
Shouldn't I explicitely request RO mount?


> Take a look at jffs2_calc_trigger_levels in build.c. 
> c->resv_blocks_deletion is the number of blocks needed to delete
> something.  c->resv_blocks_write is the number of blocks needed to
> write something.
Ok, but where is the code that switches it to RO mode in case of lack of 
eraseblocks?

-- 
Best Regards,
Artem B. Bityutskiy,
St.-Petersburg, Russia.




More information about the linux-mtd mailing list