public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* Guaranteed writable space on JFFS2?
@ 2005-01-20 12:55 Thomas Weber
  2005-01-21  9:39 ` Artem B. Bityuckiy
  0 siblings, 1 reply; 2+ messages in thread
From: Thomas Weber @ 2005-01-20 12:55 UTC (permalink / raw)
  To: linux-mtd

Hi,

I've a problem with JFFS2 (kernel 2.4.26) on a NOR flash with 128k blocks.
Due to previous unexpected behaviour, I've already changed

> super.c@85:
> -       avail = c->dirty_size + c->free_size;
> +       avail = (c->dirty_size / c->sector_size) * c->sector_size + c->free_size;

as GC returns ENOSPC on dirty size < sector size. This occurs quite 
often on a nearly full fs with 128k blocks.
By now, e.g. df provides the physical free space, but I do not know how 
much of this space is really writable, since I do not know how much is 
necessary file system organisation, inodes, etc.
Is there a way to predict the maximum file size, which will still be 
writable?

Thanks for your suggestions,
Thomas

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-01-21  9:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-20 12:55 Guaranteed writable space on JFFS2? Thomas Weber
2005-01-21  9:39 ` Artem B. Bityuckiy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox