All of lore.kernel.org
 help / color / mirror / Atom feed
* jffs v1 - runs out of space...what next?
@ 2001-12-03 20:14 Craig Gwydir
  2001-12-03 22:14 ` creating jffs filesystems with mkfs.jffs Craig Gwydir
  0 siblings, 1 reply; 2+ messages in thread
From: Craig Gwydir @ 2001-12-03 20:14 UTC (permalink / raw)
  To: linux-mtd

For rather evil purposes, we are using the linux 2.4.16 jffs code on a
read-write filesystem.
Occasionally, I use rsync to update this jffs filesystem then reboot.

A problem occurs when the jffs v1 filesystem becomes full.  The next reboot
of the target displays:

jffs_scan_flash(): did not find even a single chuck of freespace. That is
BAD!
jffs_scan_flash(): free sized accounting screwed
jffs_scan_flash(): free_chukc_size1 == 0xf00000, free_chuck_size2 == 0x0,
                   fmc->free_size == 0x0

JFFS: failed to mount root device
kernel panic: Unable to mount root fs
kdb>

There is only about 12MB on my 16MB flash in use tho.  I believe rsync
created a tmp file
during the transfer of a large file which caused useable space to fill.


Question:

1) Any internal JFFS config settings I can tweak to avoid this condition?
   (Yes, I know, the "don't do that" suggestion works here ;)

2) Has anybody had this condition of jffs running out of space, and they
experience the same
   condition?

Yes, I know I probably should run jffs mounts as real-only since it is
flash.
I thought that jffs v1 was supposed to be robust enough to handle failures,
including
"no space on device" errors.

Thanks,
Craig

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

* creating jffs filesystems with mkfs.jffs
  2001-12-03 20:14 jffs v1 - runs out of space...what next? Craig Gwydir
@ 2001-12-03 22:14 ` Craig Gwydir
  0 siblings, 0 replies; 2+ messages in thread
From: Craig Gwydir @ 2001-12-03 22:14 UTC (permalink / raw)
  To: linux-mtd

I am using an Intel E28F128 flash part in my design along with jffs v1 (x86,
linux 2.4).

The Intel flash part is organized as 128 x 128KB blocks.

Question: Are there any options I should use on mkfs.jffs to accomodate
this?
          Should I use the mkfs.jffs -e option and set it to 131072 for the
erase size
          when creating the jffs filesystem?

Thx,
Craig

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

end of thread, other threads:[~2001-12-03 22:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-12-03 20:14 jffs v1 - runs out of space...what next? Craig Gwydir
2001-12-03 22:14 ` creating jffs filesystems with mkfs.jffs Craig Gwydir

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.